I have an Uno with eight LEDs wired to pins 2...9.
As I upload a "null" program
void setup(){}
void loop(){}
I see (in roughly this sequence);
- The LEDs on pins 8 and 9 flash briefly once simultaneously
- Flashing on the onboard 'L' LED
- Flashing on the onboard TX RX LEDs
- The LEDs on pins 8 and 9 flash briefly once simultaneously
If I now press the "Reset" button only the onboard "L" LED flashes.
With the sketch loaded when I plug in the USB I see;
- The LEDs on pins 8 and 9 flash briefly once simultaneously
- Flashing on the onboard 'L' LED
Why do the LEDs on pins 8 and 9 flash once during power-up and twice during uploading (once at the start of upload and once at the end)?