upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Main Page
Related Pages
UPM Libraries
Namespaces
Data Structures
Files
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
Data Fields
_button_context Struct Reference
Manufacturer
»
SeeedStudio
Connection Type
» |
GPIO
Sensor Categories
» |
Button
Starter Kits
» |
Grove Starter Kit
»
libupm-button
API for the Button.
More...
Detailed Description
ID:
button
Name:
Button
Other Names:
Grove Button
Category:
button
Manufacturer:
seeed
Connection:
gpio
Kit:
gsk
Basic UPM module for the button sensor
// 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:
src/button/
button.h
Generated on Wed Nov 21 2018 10:43:55 for upm by
1.8.11