Skip to content

Commit 4afe722

Browse files
authored
Support additional installed LEDs (#55)
* Modified length of LED strip to allow for additional LEDs * fixed length since final LEDs are wired in parallel
1 parent c890472 commit 4afe722

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/include/Constants.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ constexpr std::array<int, 8> kAutoSwitchPorts = {11, 12, 13, 18,
4545
constexpr int kRedBlueSwitchPort = 10;
4646

4747
/// LED strip
48-
constexpr int kLEDBuffLength = 88;
49-
constexpr int kLEDStripLength = kLEDBuffLength / 4;
48+
constexpr int kLEDStripLength = 22;
49+
constexpr int kAltLEDStripLength = 18;
50+
constexpr int kLEDBuffLength = kLEDStripLength * 4 + kAltLEDStripLength;
5051
constexpr bool kStripDirections[] = {false, true, true,
5152
true}; // false means up, true means down
5253

0 commit comments

Comments
 (0)