upm
0.3.2
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for the Grove Button. More...
Basic UPM module for the Grove button
Public Member Functions | |
GroveButton (unsigned int pin) | |
~GroveButton () | |
std::string | name () |
int | value () |
![]() | |
std::string | name () |
Additional Inherited Members | |
![]() | |
std::string | m_name |
GroveButton | ( | unsigned int | pin | ) |
Grove button constructor
gpio | Pin to use |
~GroveButton | ( | ) |
Grove button destructor
std::string name | ( | ) |
Gets the name of the sensor
int value | ( | ) |
Gets the value from the GPIO pin