snipplets.dev/snipplets/code/Arduino/init_blink.h
2023-08-05 22:45:06 +03:00

14 lines
281 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);
}
}