【笔记】Arduino控制RGB-LED灯模块
前言
Arduino UNO R4控制RGB-LED灯模块
接线图
flowchart LR
subgraph UNO ["Arduino UNO R4"]
Pin_11(("~11"))
Pin_10(("~10"))
Pin_9(("~9"))
Pin_GND(("GND"))
end
subgraph Module ["RGB-LED灯模块"]
A(("R"))
B(("G"))
C(("B"))
D(("GND"))
end
Pin_11 --- A
Pin_10 --- B
Pin_9 --- C
Pin_GND --- D
源代码
1 | const int R_PIN = 11; |