In this experiment, we will learn how to use the seven-color flash LED module.
Clear 5mm LED for direct operation from 5V. The LED color automatically cycles through a seven-color sequence. The 5 V supply connects to the ‘S’ pin and ground on the center pin.
This LED module is equipped with three pins, yet only the two pins adjacent to the "S" label are functionally required. If the LED fails to light up during debugging, please verify whether the hardware wiring is correct.
Seven-colorflashled:
7 color flashing LED module automatically uses 5mm round high-brightness light-emitting diode which has the following characteristics:
You can click the blue text link to download the program file to your local device, and double-click the file to open it after the download is complete. Please note: Before opening the file, ensure that you have installed the Arduino IDE development environment and completed the installation of relevant components such as the board support package and driver corresponding to the board.
void setup() {
pinMode(18, OUTPUT);
}void loop() {
digitalWrite(18, HIGH);
}