20 lines
356 B
C
20 lines
356 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 {
|
|
|
|
} Led;
|
|
|
|
void init_leds(void);
|
|
void example_leds(void);
|
|
|
|
#endif /* LEDS_H */ |