Mo Chen / Circular_LED

Dependents:   Seeed_Grove_Circular_LED

Fork of LED_Bar by Seeed

Embed: (wiki syntax)

« Back to documentation index

Circular_LED Class Reference

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:
levelLevel 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:
numwhich led
st1: 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:
stateThe 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.