for (value = 255; value > 0; value = value - 1) {
analogWrite (LED, value); // LED gradually goes out
delay (20); // delay 20MS
}
}
//**********************************************************
Upload code to development board, the LED’s blink frequency is slower,
isn’t it?
Project 3:Push Button Module
(1)Description
In this project, we intend to use the push button module to control the LED.
(2)Parameters:
◆ Working voltage:DC 3.3-5V
◆ Control signal:digital signal
◆ Size:34*22*15mm
◆ Weight:3.8g