I've tried the blinkdemo, and I don't quite understand the BlinkPlug class, even with the description :
http://news.jeelabs.org/2009/12/12/blinkplug-class/
What does poll do exactly ?
How does the various parts works ?
But maybe I just don't need to know these...
however I feel it makes it tricky to find my problem :
My Led 2 isn't working !
At setup time I can't see it lighting up, and I tried to add this to the demo :
if (on) {
buttons.ledOn(1);
buttons.ledOff(2);
}
else {
buttons.ledOn(2);
buttons.ledOff(1);
}
No light.
But each buttons is working expected !
Both buttons is somewhat variable, but it seems to work.
Led 1 is blinking well if not bright.
Any advice ?
