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:
jimmyandClaude Haiku 5.5 committed 2026-11-10 22:22:50 +13:00
1 parent 0c80638647
commit d6cf56f105
9 files changed
+2626

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
build/
sdkconfig.old