Added LED Ring

This commit is contained in:
2026-05-05 17:36:29 +02:00
parent 2cf7371a34
commit c35d18e0cc
6 changed files with 166 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <stdint.h>
typedef enum { LED_CMD_CLEAR, LED_CMD_SET_DIGIT, LED_CMD_SET_COLOR } led_mode_t;
typedef struct {
led_mode_t mode;
uint8_t value;
uint8_t r, g, b;
} led_command_t;
void led_ring_send_command(led_command_t *cmd);
void led_ring_init(void);