C++ API for Seven segments screen.
More...
This file defines the TM1637 C++ interface for lib4digitdisplay
A
---
F | | B -G-
E | | C
D
|
| TM1637 (uint8_t di, uint8_t dcki) |
|
| ~TM1637 () |
|
mraa_result_t | setBrightness (uint8_t level) |
|
mraa_result_t | setSegments (const uint8_t segments[], uint8_t length=4, uint8_t pos=0) |
|
mraa_result_t | write (std::string msg) |
|
std::string | name () |
|
TM1637 |
( |
uint8_t |
di, |
|
|
uint8_t |
dcki |
|
) |
| |
Instanciates a TM1637 object
- Parameters
-
TM1637 object destructor, this will close all used Gpio pins (di and dcki)
mraa_result_t setBrightness |
( |
uint8_t |
level | ) |
|
Set the brightness of the seven segment display
- Parameters
-
level | The brightness level of leds |
mraa_result_t setSegments |
( |
const uint8_t |
segments[], |
|
|
uint8_t |
length = 4 , |
|
|
uint8_t |
pos = 0 |
|
) |
| |
Set the the segment screen data and number of segments
- Parameters
-
segments | data to write on the segments, each elemnt in array is segment |
length | number of elements in segments array |
pos | data writing offset |
mraa_result_t write |
( |
std::string |
msg | ) |
|
Write message on the screen.
- Parameters
-
msg | The message to be written on the sreen |
Return name of the component
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/tm1637/tm1637.h
- /var/lib/jenkins/workspace/upm-doc/src/tm1637/tm1637.cxx