Arduino Lesson 6 - Using Time to Blink, not Delay

preview_player
Показать описание
In this video I show you how to blink the LEDs using the millis() function rather than the delay() function. This gives us greater control over the LEDs when pressing and releasing the button. Now, rather than having the LEDS continue to blink after the button is released (due to the delays), they turn off immediately.

Рекомендации по теме
Комментарии
Автор

Please HELP... I want LED ON for 3 sec. then OFF for 7 sec. then loop repeat again...
Must be use millis() without delay ReadMore...
void setup() {
pinMode(LED, OUTPUT); }

void loop() {
digitalWrite(LED, HIGH);
delay(3000);
digitalWrite(LED, LOW);
delay(7000); }

SayyedKashif
welcome to shbcf.ru