Added LED Ring
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user