Skip to content

Commit

Permalink
Chaser pattern for orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
LivingSynthesis committed Nov 17, 2023
1 parent 7389367 commit a250fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VortexEngine/src/Patterns/Multi/Sequencer/ChaserPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ChaserPattern::ChaserPattern(const PatternArgs &args) :
// a pattern map for each step. A colorset map can also be applied
// to override certain colors for specific steps, but that's not
// what is being done here
for (uint8_t i = 0; i < 8; ++i) {
for (uint8_t i = 0; i < LED_COUNT; ++i) {
// Each step all fingers are dops except for one, so start with a
// Pattern Map that has dops on all fingers. A Pattern Map will map
// a Pattern ID to each LED on the device, then we will override a
Expand All @@ -35,7 +35,7 @@ ChaserPattern::ChaserPattern(const PatternArgs &args) :
// 5 3 6, 7 00 11 00 00 00
// 6 2 4, 5 00 00 11 00 00
// 7 1 2, 3 00 00 00 11 00
LedMap overrideLeds = 0; //MAP_PAIR((Pair)((i < 5) ? i : (8 - i)));
LedMap overrideLeds = MAP_LED(i) | MAP_LED((i + LED_COUNT/4) % LED_COUNT) | MAP_LED((i + LED_COUNT / 2) % LED_COUNT) | MAP_LED((i + (3* LED_COUNT / 4)) % LED_COUNT); //MAP_PAIR((Pair)((i < 5) ? i : (8 - i)));
// Then this API is used to override specific positions in the Pattern Map
// with a different pattern ID, we use the Led Map generated above to tell
// setPatternAt() which indices to override with Solid0
Expand Down

0 comments on commit a250fdf

Please sign in to comment.