Referencia para la versión de Wiring 1.0 Build 0100+. Si tiene una versión previa, use la referencia incluida con su software. Si encuentra errores o tiene comentarios, no dude en contactarnos.
| Clase | Button |
|---|---|
| Nombre | isPressed() |
| Ejemplos | #include <Button.h> /* Wire like this: GND -----/ button ------ pin 12 */ Button button = Button(12, BUTTON_PULLUP_INTERNAL); void setup() { pinMode(WLED, OUTPUT); } void loop() { if (button.isPressed()) { digitalWrite(WLED, HIGH); } else { digitalWrite(WLED, LOW); } } |
| Descripción | Retorna el bitRead(estado,ACTUAL) del switch. |
| Sintaxis | isPressed() |
| Retorna | Booleana: Verdad si el botón es presionado. |
| Uso | Application |

