diff --git a/main/drivers/CMakeLists.txt b/main/drivers/CMakeLists.txt index 5b940b7..8f76bb6 100644 --- a/main/drivers/CMakeLists.txt +++ b/main/drivers/CMakeLists.txt @@ -3,6 +3,7 @@ set(SOURCES "TM1640/TM1640.cpp" "bottom_half.cpp" "wires.cpp" + "leds.cpp" ) target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES}) diff --git a/main/drivers/leds.cpp b/main/drivers/leds.cpp new file mode 100644 index 0000000..9e1983e --- /dev/null +++ b/main/drivers/leds.cpp @@ -0,0 +1,6 @@ +#include "leds.h" + +#define TAG "leds" +#define PIXEL_COUNT 21 +#define NEOPIXEL_PIN GPIO_NUM_7 + diff --git a/main/drivers/leds.h b/main/drivers/leds.h new file mode 100644 index 0000000..ad3f991 --- /dev/null +++ b/main/drivers/leds.h @@ -0,0 +1,6 @@ +#ifndef LEDS_H +#define LEDS_H + +#include "neopixel.h" + +#endif /* LEDS_H */ \ No newline at end of file diff --git a/main/idf_component.yml b/main/idf_component.yml index 0df04d4..ec497b4 100644 --- a/main/idf_component.yml +++ b/main/idf_component.yml @@ -1,5 +1,6 @@ ## IDF Component Manager Manifest File dependencies: + zorxx/neopixel: "*" # iamflinks/i2c_lcd_pcf8574: "^1.0.1" lvgl/lvgl: "^8.1" atanisoft/esp_lcd_ili9488: "^1.0.9"