arduino init blink

This commit is contained in:
Alexander Popov 2023-03-22 22:08:57 +03:00
parent f444ef5822
commit f32007496c
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
1 changed files with 13 additions and 0 deletions

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);
}
}