Add WS2812 driver library and C++ LED strip example
Move the LED strip example to C++ and split the driver into a WS2812 class (ws2812.h/.cpp). The class takes the GPIO and LED count in its constructor and provides set(), fill(), write(), setBrightness() and a static hsv2rgb(). The RMT encoder is now internal to ws2812.cpp. Also adds a top-level Makefile wrapping idf.py for Linux, macOS and Windows, and a .gitignore for build output. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0c80638647
commit
d6cf56f105
9 files changed
+2626
No files matched your search
@@ -0,0 +1,2 @@
|
||||
build/
|
||||
sdkconfig.old
|
||||
Reference in new issue
Block a user