2023-03-22 22:08:57 +03:00
|
|
|
|
/*
|
|
|
|
|
Author: Alexander Popov
|
|
|
|
|
License: Unlicense
|
2023-09-10 01:02:36 +03:00
|
|
|
|
|
|
|
|
|
Функция, которая моргает встроенным светодиодом
|
2023-03-22 22:08:57 +03:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
void init_blink(int times, int delay) {
|
|
|
|
|
for (int count = 0; count < times; count++) {
|
|
|
|
|
digitalWrite(LED_BUILTIN, HIGH);
|
|
|
|
|
delay(delay);
|
|
|
|
|
digitalWrite(LED_BUILTIN, LOW);
|
|
|
|
|
delay(delay);
|
|
|
|
|
}
|
|
|
|
|
}
|