Rainbow animatino

This commit is contained in:
2023-03-25 01:22:57 +01:00
parent 57c94b2423
commit fedf6015df
2 changed files with 63 additions and 2 deletions

View File

@ -25,16 +25,22 @@ typedef enum {
ANIM_TE_STARTUP,
ANIM_FT_STARTUP,
ANIM_KNIGHT_RIDER,
ANIM_RAINBOW,
} LEDAnimation;
void led_start_animation(LEDAnimation anim);
void led_anim_te_startup(ULONG _);
void led_anim_ft_startup(ULONG _);
void led_anim_knight_rider(ULONG _);
void led_anim_rainbow(ULONG _);
void led_anim_blinker(uint8_t r, uint8_t g, uint8_t b,
uint32_t brightness_steps, uint32_t next_led_steps,
uint32_t delay);
void led_hsv_to_rgb(float h, float s, float v, uint8_t *r, uint8_t *g,
uint8_t *b);
#ifdef __cplusplus
}
#endif