fix variable name
This commit is contained in:
parent
b2751e2d24
commit
1e68534290
@ -45,12 +45,12 @@ void setup() {
|
||||
в функции `delay()`, а можно сделать это более элегатно, добавив аргумет.
|
||||
|
||||
```c
|
||||
void init_blink(int times, int delay) {
|
||||
void init_blink(int times, int delay_time) {
|
||||
for (int count = 0; count < times; count++) {
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
delay(delay);
|
||||
delay(delay_time);
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
delay(delay);
|
||||
delay(delay_time);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user