说明 在Arduino Uno 开发板上连接RGB-LED灯 下面程序来让这个RGB-LED灯闪烁。 代码 // 配置LED对应引脚 const int redPin = 11; // red LED const int greenPin = 12; // green LED const int bluePin = 13; // blue LED void setup() { // 设置引脚为输出模式 pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT)