led.h (572B)
1#pragma once 2 3#include <stdint.h> 4#include <stdbool.h> 5 6#define SOFT_WHITE 0x404040 7#define SOFT_YELLOW 0x404000 8#define SOFT_PURPLE 0x400040 9#define HARD_WHITE 0xFFFFFF 10#define HARD_YELLOW 0xFF00FF 11#define HARD_RED 0xFF0000 12 13enum { 14 LED_OFF, 15 LED_ON, 16 LED_BLINK 17}; 18 19extern int led_mode; 20extern bool led_reset; 21extern uint32_t led_blink_ms; 22extern uint32_t led_rgb; 23 24extern bool led_blip; 25extern bool led_blip_reset; 26extern uint32_t led_blip_ms; 27extern uint32_t led_blip_rgb; 28 29void led_init(void); 30void led_task(void); 31void led_start_blip(uint32_t rgb, uint32_t ms);