I used a Nano classic because it exposed A0-A7, of which I used A0-A6 to write 7 bits to the port simultaneously. Some of you might already see the issue. A6 and A7 do not work as digital outputs with the 328P. So far as I see there is no way to write 7 or 8 bits to a single port as a digital output on any port on the 328P.
To that end, I upgraded the project to a Mega 2560. Looking at the pin/port diagram for the Mega 2650, it looks like I can easily use Port F or Port K to write 7 or 8 bits as a digital output. Do I have that correct or is there a pitfall that I've missed?
3 posts - 2 participants