Make pinmode for-loop typing more declarative
This commit is contained in:
parent
215315bd3a
commit
5de0b22ada
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ public:
|
||||||
: lightPins{PIN...}, lightActions{actionQueueSize},
|
: lightPins{PIN...}, lightActions{actionQueueSize},
|
||||||
lightControllerTask{exec, "control lights", stackDepth,
|
lightControllerTask{exec, "control lights", stackDepth,
|
||||||
this, priority, coreID} {
|
this, priority, coreID} {
|
||||||
for (auto pin : lightPins) {
|
for (int pin : lightPins) {
|
||||||
pinMode(pin, OUTPUT);
|
pinMode(pin, OUTPUT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue