blk_box_tc/main/drivers/leds.h
2024-08-07 00:11:53 -05:00

40 lines
713 B
C

#ifndef LEDS_H
#define LEDS_H
#include "led_strip.h"
#define PIXEL_COUNT 21
#define NEOPIXEL_PIN GPIO_NUM_7
// 10MHz resolution, 1 tick = 0.1us (led strip needs a high resolution)
#define LED_STRIP_RMT_RES_HZ (10 * 1000 * 1000)
extern led_strip_handle_t leds;
typedef enum {
shape1 = 0,
shape2 = 1,
shape3 = 2,
shape4 = 3,
module_sseg = 4,
game_sseg = 5,
tft = 6,
mic = 7,
ir_led = 8,
speaker = 9,
rfid = 10,
keypad = 11,
char_lcd = 12,
switch4 = 13,
switch3 = 14,
switch2 = 15,
switch1 = 16,
button1 = 17,
button2 = 18,
button3 = 19,
button4 = 20,
} Led;
void init_leds(void);
void example_leds(void);
#endif /* LEDS_H */