Skip to content

Commit

Permalink
Support additional installed LEDs (#55)
Browse files Browse the repository at this point in the history
* Modified length of LED strip to allow for additional LEDs

* fixed length since final LEDs are wired in parallel
  • Loading branch information
jlbabilino authored Mar 17, 2023
1 parent c890472 commit 4afe722
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/include/Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ constexpr std::array<int, 8> kAutoSwitchPorts = {11, 12, 13, 18,
constexpr int kRedBlueSwitchPort = 10;

/// LED strip
constexpr int kLEDBuffLength = 88;
constexpr int kLEDStripLength = kLEDBuffLength / 4;
constexpr int kLEDStripLength = 22;
constexpr int kAltLEDStripLength = 18;
constexpr int kLEDBuffLength = kLEDStripLength * 4 + kAltLEDStripLength;
constexpr bool kStripDirections[] = {false, true, true,
true}; // false means up, true means down

Expand Down

0 comments on commit 4afe722

Please sign in to comment.