Thanks again cmaglie, your fix on the Arduino.h puts everything working on the right spot. ![]()
I hope it will sent to GIT so the last version comes out fixed with that.
Now all code works like a charme, I wonder now if we still can not optimize it a bit more since we are still using on the ports writing routines the REG_PIOD_SODR register, do you think this can also be changed for ODSR?
The problem with ODSR is when you write something there what was before gets cleared, so I think I need to do the proper logic just to change what´s new and maintain what was previous, no?