mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Update build/shared/examples/05.Control/Arrays/Arrays.ino
removed redundant thisPin declaration in setup
This commit is contained in:
@ -27,7 +27,6 @@ int ledPins[] = {
|
|||||||
int pinCount = 6; // the number of pins (i.e. the length of the array)
|
int pinCount = 6; // the number of pins (i.e. the length of the array)
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
int thisPin;
|
|
||||||
// the array elements are numbered from 0 to (pinCount - 1).
|
// the array elements are numbered from 0 to (pinCount - 1).
|
||||||
// use a for loop to initialize each pin as an output:
|
// use a for loop to initialize each pin as an output:
|
||||||
for (int thisPin = 0; thisPin < pinCount; thisPin++) {
|
for (int thisPin = 0; thisPin < pinCount; thisPin++) {
|
||||||
|
Reference in New Issue
Block a user