mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
Fixed variable naming error
This commit is contained in:
parent
228ffc8fa7
commit
c1d6b2ef3d
@ -26,7 +26,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 < 8; thisPin++) {
|
for (int thisPin = 0; thisPin < 8; thisPin++) {
|
||||||
// turn the pin on:
|
// turn the pin on:
|
||||||
digitalWrite(thisPin, HIGH);
|
digitalWrite(thisPin, HIGH);
|
||||||
delay(timer);
|
delay(timer);
|
||||||
@ -35,7 +35,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// loop from the highest pin to the lowest:
|
// loop from the highest pin to the lowest:
|
||||||
for (thisPin = 7; thisPin >= 2; thisPin--) {
|
for (int thisPin = 7; thisPin >= 2; thisPin--) {
|
||||||
// turn the pin on:
|
// turn the pin on:
|
||||||
digitalWrite(thisPin, HIGH);
|
digitalWrite(thisPin, HIGH);
|
||||||
delay(timer);
|
delay(timer);
|
||||||
|
Loading…
Reference in New Issue
Block a user