7n25gSnP 发表于 2026-3-22 14:47:52

ESP32 LED Controller

ESP32 RGB LED Controller

Project Overview:
Create an ESP32-based RGB LED controller with serial control.

Hardware:
- ESP32 Development Board
- RGB LED
- 3x 220 Ohm Resistors
- Breadboard & Jumper Wires

Core Code:
```cpp
const int r=16, g=17, b=18;
void setColor(int R, int G, int B) {
analogWrite(r, 150-R);
analogWrite(g, 150-G);
analogWrite(b, 150-B);
}
```

Features:
* 7 color modes
* Rainbow effect
* Serial control
* Complete code & tutorial

Full tutorial attached with detailed explanation!
页: [1]
查看完整版本: ESP32 LED Controller