mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
Fixed variable naming error
This commit is contained in:
@@ -35,7 +35,7 @@ void setup() {
|
|||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
// loop from the lowest pin to the highest:
|
// loop from the lowest pin to the highest:
|
||||||
for (int thisPin = 0; i < pinCount; thisPin++) {
|
for (int thisPin = 0; thisPin < pinCount; thisPin++) {
|
||||||
// turn the pin on:
|
// turn the pin on:
|
||||||
digitalWrite(ledPins[thisPin], HIGH);
|
digitalWrite(ledPins[thisPin], HIGH);
|
||||||
delay(timer);
|
delay(timer);
|
||||||
@@ -45,7 +45,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// loop from the highest pin to the lowest:
|
// loop from the highest pin to the lowest:
|
||||||
for (thisPin = pinCount - 1; thisPin >= 0; thisPin--) {
|
for (int thisPin = pinCount - 1; thisPin >= 0; thisPin--) {
|
||||||
// turn the pin on:
|
// turn the pin on:
|
||||||
digitalWrite(ledPins[thisPin], HIGH);
|
digitalWrite(ledPins[thisPin], HIGH);
|
||||||
delay(timer);
|
delay(timer);
|
||||||
|
Reference in New Issue
Block a user