PaulS:
...
The constructor will be called before the init() function is called. It is the init() function that sets up the hardware, so calling pinMode() before init() is a waste of time.
...
I thought of that but found that pinMode() was effective. This was on a Teensy 2 btw, so I'm not sure if its the same on an Uno, etc.
I suppose it's "undefined" or uncertain whether it should/could/would work or not, so I agree a separate setup() method is best.
Cheers,
John
Blinker.ino (1.44 KB)