Thank you internet - thank you forums

Wow!
After far too long debugging, I found out why one of my LEDs refused to turn off as it shoudl do.

With thanks to contributor DaveClark5 of the Arduino forum (https://forum.arduino.cc/index.php?topic=252797.) I learned that...

If your sketch has something like this in it:
 Serial.begin(9600);

It will use the serial comm.  On an Uno that's 0 and 1.
On Mega - you can change that I believe.


This is why the LED on pin 1 was always reading high, even when it was meant to be off.

The good news is that analogue pins can be used as digital outs.

Comments