buttonL
and buttonR
are objects representing the two pushbuttons on the Circuit Playground. Internally buttonL
is connected to pin 4 and buttonR
is connected to pin 19.
buttonL.isPressed
- Boolean property, true
is the button is being pushed down, otherwise false
buttonL.holdtime
- Number of milliseconds for button to be held down before "hold" event is firedbutton.holdtime
Found a bug in the documentation? Let us know at documentation@code.org