Contributed by Shenye, organized by Ai-Thinker
[Major Update] WB2 SDK WS2812 Driver Fully Upgraded!
📢 The latest SDK has been released, come and try it out!
Update steps:
- Enter the SDK directory
- Run git pull to get the latest code

🔥 Main updates in this release:
- Added dual-mode support for the WS2812 driver: ✅ IR simulation mode ✅ SPI hardware mode
- Added complete documentation for the WS2812 demo project
- Optimized the existing driver code structure
- Added multiple driver implementation files
🛠 Quick configuration guide:
- Change the CONFIG_WS2812_MODE value in proj_config.mk to switch the driver mode
- In main.c you can customize:
- The control pin
- The LED count
- The brightness parameter
- The refresh rate
💡 Example configuration:
Click to expand full code
c
static
ws2812_strip_t
ws2812_strip = {
.led_count =
46
,
.brightness =
0.05
,
.pin =
12
,
};🎉 Special recommendation: Works even better with the WLED project released a few days ago! Features include: ✨ RGB full-color control 💡 256-level brightness adjustment 🌈 Multiple cool effects:
- Static solid color
- Rainbow waves
- Smooth gradient
- Breathing light effect
- Color wheel rotation 🐍 Snake game effect (8x8 matrix) 📱 Responsive web control interface ⚡ Real-time status feedback



