Update to work with Grove
Dependencies: DigitDisplay RangeFinder Pulse Grove_temperature FXOS8700Q
LED_Bar Class Reference
The LED_Bar interface. More...
#include <LED_Bar.h>
Public Member Functions | |
void | ledIndexBit (unsigned int index_bits) |
Set led single bit, a bit contrl a led. | |
void | setLevel (int level) |
Set level, frm 0 to 10. | |
void | setSingleLed (int num, int st) |
Control a single led. |
Detailed Description
The LED_Bar interface.
Definition at line 36 of file LED_Bar.h.
Member Function Documentation
void ledIndexBit | ( | unsigned int | index_bits ) |
Set led single bit, a bit contrl a led.
- Parameters:
-
index_bits which bit. if 0x05, then led 0 and led 3 will on, the others will off
Definition at line 56 of file LED_Bar.cpp.
void setLevel | ( | int | level ) |
Set level, frm 0 to 10.
- Parameters:
-
level Level 0 means all leds off while level 5 means 5led on and the other will off
Definition at line 71 of file LED_Bar.cpp.
void setSingleLed | ( | int | num, |
int | st | ||
) |
Control a single led.
- Parameters:
-
num which led st 1: on 0: off
Definition at line 87 of file LED_Bar.cpp.
Generated on Wed Jul 13 2022 06:29:10 by 1.7.2