Hi Mem,
Thanks for the welcome and feedback, very valuable. Do I detect a closet Delphi fan there?
I was wondering about bit wise shifts, but didn't know the syntax in C. I came from an assembler and machine code programming background before Delphi, so I love twiddling about with bits.
I had to admit I smiled at the idea of define constructs to make C more readable, it needs more than that! I thought C's main reason d'etre was to be as unreadable as possible! Why have && when you could have AND? ;D
Thanks for the boolean trick in the digitalWrite, very neat. I am used to doing such things in Delphi, so it's good to have those.
The semicolons are pretty much the same as in Delphi, although using one on the end of the command preceding an else is slightly odd for me. In Delphi doing that would terminate the if statement and then the else would trip up the compiler.
I wasn't aware of the 1st output being used for programming, although the penny did drop when I uploaded my sketch and the first LED was flashing away. Didn't seem to cause any problems.
I'm using a Moderndevice BBB.
Anyway, that's the language issues handled, thanks very much... Now if only I could change the font so l and 1 don't look the same, I'd be a very happy man ![]()
Steve.