C++ API for MY9221 led bar module.
More...
This file defines the MY9221 C++ interface for libmy9221
signal(SIGINT, sig_handler);
while (!running) {
for (int idx = 1; idx < 11; idx++) {
usleep(1000);
}
}
MY9221 |
( |
uint8_t |
di, |
|
|
uint8_t |
dcki |
|
) |
| |
Instanciates a MY9221 object
- Parameters
-
mraa_result_t setBarLevel |
( |
uint8_t |
level, |
|
|
bool |
direction = true |
|
) |
| |
Set the level bar
- Parameters
-
level | selected level for the bar (1 - 10) |
direction | up or down, true is up and is the default |
Return name of the component
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/my9221/my9221.h
- /var/lib/jenkins/workspace/upm-doc/src/my9221/my9221.cxx