upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Data Fields

API for the Button. More...

Detailed Description

Basic UPM module for the button sensor

button.jpg
// Create the button object using GPIO pin 0
upm::Button button(0);
// Read the input and print, waiting one second between readings
while (1) {
std::cout << button.name() << " value is " << button.value() << std::endl;
upm_delay(1);
}
// Delete the button object

Data Fields

mraa_gpio_context gpio
 
bool isr_installed
 

The documentation for this struct was generated from the following file: