ESP32 LED Controller
ESP32 RGB LED ControllerProject 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]