I am designing a line following robot, and all my digital i/o pins are used up. I have 2 digital pins, 1 and 0 and all the analog Pins unused. I need to use an LED in the circuit, is there a way to implement it?
The problem is that those pins are wired to the serial<->USB interface chip, for serial comms.
If you don’t want serial comms fine, but sketches are also uploaded using serial comms, which
means care is needed.
The analog pins can be used as digital no problem on the Uno/Mega, note, just be sure to use the
A0,A1 names, not 0, 1, if you want to refer to analog pins in pinMode() and digitalWrite () calls