找回密码
 立即注册
搜索
热搜: STM32
查看: 39|回复: 0

ESP32 LED Controller

[复制链接]

28

主题

0

回帖

102

积分

注册会员

积分
102
发表于 2026-3-22 14:47:52 |北京| 显示全部楼层 |阅读模式
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!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2026-4-5 14:57 , Processed in 0.030200 second(s), 20 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表