mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 13:19:41 +00:00
led and rc
This commit is contained in:
@ -38,6 +38,7 @@
|
||||
**/
|
||||
|
||||
#define INDICATORS_COUNT 2
|
||||
#define LED_IDLE_TIMEOUT 1000
|
||||
|
||||
typedef struct LedMap_element {
|
||||
uint8_t byteIndx;
|
||||
@ -59,9 +60,24 @@ void led_show();
|
||||
void led_tick();
|
||||
|
||||
void led_writeMirror(uint8_t number, uint8_t state);
|
||||
void led_write(LedMap_element led, uint8_t state);
|
||||
void led_write(uint8_t number, uint8_t state);
|
||||
void led_blink(LedMap_element led, uint16_t period, uint16_t count);
|
||||
void led_blink_num(uint8_t ledNum, uint16_t period, uint16_t count);
|
||||
|
||||
void led_progressbar(uint8_t fromLed, uint8_t toLed ,uint8_t progress);
|
||||
void led_progressbarMirror(uint8_t fromLed, uint8_t toLed ,uint8_t progress);
|
||||
//void led_setOnDone(void (*callback)());
|
||||
//void led_resetOnDone();
|
||||
|
||||
void led_PingPong_start(uint8_t fromLed, uint8_t toLed);
|
||||
void led_PingPong_startMirror(uint8_t fromLed, uint8_t toLed);
|
||||
void led_PingPong_next();
|
||||
|
||||
void led_showSpeed(uint8_t progressUP, uint8_t progressDOWN);
|
||||
|
||||
void led_setIdleCallback(void(*callback)());
|
||||
void led_resetIdleCallback();
|
||||
|
||||
uint8_t led_getState(LedMap_element led);
|
||||
void led_clear();
|
||||
|
||||
|
Reference in New Issue
Block a user