/* Driver for the remote controller */ #pragma once typedef enum { RM_IDLE = 0, RM_BRIGHTUP = 1, RM_BRIGHTDOWN = 2, RM_OFF = 3, RM_ON = 4, RM_RED = 5, RM_GREEN = 6, RM_BLUE = 7, RM_WHITE = 8, RM_1 = 9, RM_2 = 10, RM_3 = 11, RM_SETUP = 12, RM_4 = 13, RM_5 = 14, RM_6 = 15, RM_STROBE = 16, RM_7 = 17, RM_8 = 18, RM_9 = 19, RM_FADE = 20, RM_WEND = 21, RM_0 = 22, RM_WDAY = 23, RM_SMOOTH = 24 } remote_button_t; #include extern volatile remote_button_t g_remote_button; extern volatile uint32_t g_remote_code; void remote_init();