snipplets.dev/code/Arduino/init_blink.h
2023-09-26 22:05:13 +03:00

16 lines
376 B
C

/*
Author: Alexander Popov
License: Unlicense
Функция, которая моргает встроенным светодиодом
*/
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);
}
}