Libraries/Button/isPressed

From Wiring

Jump to: navigation, search
Name isPressed()
Description Check if a button is currently being pressed
Syntax
button.isPressed()
Methods
Constructor
Parameters
Returns bool (HIGH or LOW)
Example
 
if (button.isPressed()) 
{
  //do something cool because the button is pressed
}
Related button.wasPressed() button.uniquePress() button.stateChanged()
Personal tools