Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Seeed_Grove_Circular_LED
Fork of LED_Bar by
Circular_LED Class Reference
The Circular_LED interface. More...
#include <Circular_LED.h>
Public Member Functions | |
void | setState (uint32_t state) |
Set the on/off state for all LEDs based on a bitmap. | |
void | setLevel (uint8_t level) |
Set level, frm 0 to 24. | |
void | setSingleLed (uint8_t num, bool st) |
Control a single led. |
Detailed Description
The Circular_LED interface.
Definition at line 36 of file Circular_LED.h.
Member Function Documentation
void setLevel | ( | uint8_t | level ) |
Set level, frm 0 to 24.
- Parameters:
-
level Level 0 means all leds off while level 5 means 5led on and the other will off
Definition at line 82 of file Circular_LED.cpp.
void setSingleLed | ( | uint8_t | num, |
bool | st | ||
) |
Control a single led.
- Parameters:
-
num which led st 1: on 0: off
Definition at line 98 of file Circular_LED.cpp.
void setState | ( | uint32_t | state ) |
Set the on/off state for all LEDs based on a bitmap.
- Parameters:
-
state The bitmap. For example, if state is 0x05, then led 0 and led 3 will be on, and the others will be off.
Definition at line 58 of file Circular_LED.cpp.
Generated on Tue Jul 12 2022 21:44:10 by
