One example works from the BiColor LED set, the other doesn't.

Seems to me there are errors in the example as published. Has anyone got it to work as-is?

The example code refers to the variables lastBlink and blinkSpeed that are part of the BiColorLED object, but the header says these are private, so can't be used from outside the object. A getBlinkSpeed function is provided which could be used, but no function to return the value of lastBlink.

I'm not an expert in how object-oriented code is supposed to be written in C/C++, but I thought the header file was supposed to tell the programmer using the object/class about the "published" interface (the parts exposed to the user) so I'm not sure why anything would appear in the header that is declared private?

Paul