|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the Grove Button. More...
Basic UPM module for the Grove button
Public Member Functions | |
| synchronized void | delete () |
| GroveButton (long pin) | |
| String | name () |
| int | value () |
| void | installISR (int level, IsrCallback cb) |
| void | uninstallISR () |
Public Member Functions inherited from Grove | |
| synchronized void | delete () |
| String | name () |
| GroveButton | ( | long | pin | ) |
Grove button constructor
| gpio | Pin to use |
| void installISR | ( | int | level, |
| IsrCallback | cb | ||
| ) |
Installs an interrupt service routine (ISR) to be called when the button is activated or deactivated.
| fptr | Pointer to a function to be called on interrupt |
| arg | Pointer to an object to be supplied as an argument to the ISR. |
| String name | ( | ) |
Gets the name of the sensor
| void uninstallISR | ( | ) |
Uninstalls the previously installed ISR
| int value | ( | ) |
Gets the value from the GPIO pin


1.8.9.1