On the Mega, PortB is on different pins. Refer to the schematic, basically its pins 51 52 53 54 10 11 12 13. Maybe not that order though.
The code works but you have to match it to the hardware.
Cheers!
On the Mega, PortB is on different pins. Refer to the schematic, basically its pins 51 52 53 54 10 11 12 13. Maybe not that order though.
The code works but you have to match it to the hardware.
Cheers!