Closed dnvasta closed 3 years ago
Are you trying to flash all pins on the port? If so, it's not going to work the way you're trying to do it.
portWrite(2,HIGH);
Will only set the first pin on the port (PA0, PB0, PC0, PD0). If you want to toggle all pins of the port, use
portWrite(2, 0xff);
Thanks @MCUdude it works!
Running a basic sketch, i'm not able to toggle a LED on Port A,C,D but works fine on Port B Any reasons ?
Fuses : (E:FF, H:D4, L:A4) 8Mhz, internal clock on Atmega16 with PlatformIO IDE