arduino init blink
This commit is contained in:
parent
f444ef5822
commit
f32007496c
13
~/Arduino/init_blink.h
Normal file
13
~/Arduino/init_blink.h
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user