upm
1.2.0
Sensor/Actuator repository for libmraa (v1.6.1)
Main Page
Related Pages
UPM Libraries
Namespaces
Data Structures
Files
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
Data Fields
_button_context Struct Reference
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 =
new
upm::Button
(0);
// Read the input and print, waiting one second between readings
while
( 1 ) {
std::cout << button->
name
() <<
" value is "
<< button->
value
() << std::endl;
sleep(1);
}
// Delete the button object
delete
button;
Data Fields
mraa_gpio_context
gpio
uint8_t
gpio_pin
bool
isr_installed
The documentation for this struct was generated from the following file:
src/button/
button.h
Generated on Wed Apr 12 2017 13:40:43 for upm by
1.8.6