led and rc

This commit is contained in:
2024-09-30 00:26:00 +03:00
parent 7095a09a1d
commit 6c3af6fbb5
15 changed files with 634 additions and 221 deletions

View File

@ -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();