arduino init blink

This commit is contained in:
2023-03-22 22:08:57 +03:00
parent f444ef5822
commit f32007496c

13
~/Arduino/init_blink.h Normal file
View File

@ -0,0 +1,13 @@
/*
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);
}
}