upm  0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions
GroveLed Class Reference

C++ API for Grove LED. More...

Detailed Description

Very basic UPM module for grove LED, or any LED for that matter

std::cout << led->name() << std::endl;
for (int i=0; i < 10; i++) {
led->on();
sleep(1);
led->off();
sleep(1);
}

Public Member Functions

 GroveLed (int pin)
 
mraa_result_t write (int value)
 
mraa_result_t off ()
 
mraa_result_t on ()
 
- Public Member Functions inherited from Grove
std::string name ()
 

Additional Inherited Members

- Protected Attributes inherited from Grove
std::string m_name
 
Inheritance diagram for GroveLed:
Inheritance graph
[legend]
Collaboration diagram for GroveLed:
Collaboration graph
[legend]

The documentation for this class was generated from the following files: