start on led driver
This commit is contained in:
parent
370b28813b
commit
f4e540b508
@ -3,6 +3,7 @@ set(SOURCES
|
|||||||
"TM1640/TM1640.cpp"
|
"TM1640/TM1640.cpp"
|
||||||
"bottom_half.cpp"
|
"bottom_half.cpp"
|
||||||
"wires.cpp"
|
"wires.cpp"
|
||||||
|
"leds.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES})
|
target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES})
|
||||||
|
|||||||
6
main/drivers/leds.cpp
Normal file
6
main/drivers/leds.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "leds.h"
|
||||||
|
|
||||||
|
#define TAG "leds"
|
||||||
|
#define PIXEL_COUNT 21
|
||||||
|
#define NEOPIXEL_PIN GPIO_NUM_7
|
||||||
|
|
||||||
6
main/drivers/leds.h
Normal file
6
main/drivers/leds.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#ifndef LEDS_H
|
||||||
|
#define LEDS_H
|
||||||
|
|
||||||
|
#include "neopixel.h"
|
||||||
|
|
||||||
|
#endif /* LEDS_H */
|
||||||
@ -1,5 +1,6 @@
|
|||||||
## IDF Component Manager Manifest File
|
## IDF Component Manager Manifest File
|
||||||
dependencies:
|
dependencies:
|
||||||
|
zorxx/neopixel: "*"
|
||||||
# iamflinks/i2c_lcd_pcf8574: "^1.0.1"
|
# iamflinks/i2c_lcd_pcf8574: "^1.0.1"
|
||||||
lvgl/lvgl: "^8.1"
|
lvgl/lvgl: "^8.1"
|
||||||
atanisoft/esp_lcd_ili9488: "^1.0.9"
|
atanisoft/esp_lcd_ili9488: "^1.0.9"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user