Skip to content

Commit 529257b

Browse files
committed
Change data pin
1 parent 9d8778f commit 529257b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class Base
7272
}
7373
ledStrips.clear();
7474

75-
for (int ledCount : ledCounts) {
76-
LED_DRIVER* ledStrip = new LED_DRIVER(ledCount, DATA_PIN);
75+
for (int i = 0; i < ledCounts.size(); i++) {
76+
LED_DRIVER* ledStrip = new LED_DRIVER(ledCount, DATA_PIN + i);
7777
ledStrips.push_back(ledStrip);
7878
}
7979
}

0 commit comments

Comments
 (0)