diff --git a/VortexEngine/src/Patterns/Multi/BackStrobePattern.cpp b/VortexEngine/src/Patterns/Multi/BackStrobePattern.cpp index 12ffdef229..594084faaf 100644 --- a/VortexEngine/src/Patterns/Multi/BackStrobePattern.cpp +++ b/VortexEngine/src/Patterns/Multi/BackStrobePattern.cpp @@ -1,5 +1,7 @@ #include "BackStrobePattern.h" +#include "../../VortexEngine.h" + BackStrobePattern::BackStrobePattern(VortexEngine &engine, const PatternArgs &args) : CompoundPattern(engine, args), m_stepSpeed(0), @@ -41,6 +43,23 @@ void BackStrobePattern::init() } void BackStrobePattern::play() +{ + switch (m_engine.leds().ledCount()) { + case 28: + playOrbit(); + break; + default: + playNormal(); + break; + } +} + +void BackStrobePattern::playOrbit() +{ + // orbit version +} + +void BackStrobePattern::playNormal() { if (m_stepTimer.alarm() == 0) { // switch which patterns are displayed @@ -52,4 +71,4 @@ void BackStrobePattern::play() m_switch ? &m_secondPatternArgs : &m_firstPatternArgs); } CompoundPattern::play(); -} \ No newline at end of file +} diff --git a/VortexEngine/src/Patterns/Multi/BackStrobePattern.h b/VortexEngine/src/Patterns/Multi/BackStrobePattern.h index 4a18f6df32..38c3c22080 100644 --- a/VortexEngine/src/Patterns/Multi/BackStrobePattern.h +++ b/VortexEngine/src/Patterns/Multi/BackStrobePattern.h @@ -17,6 +17,9 @@ class BackStrobePattern : public CompoundPattern virtual void play() override; private: + void playOrbit(); + void playNormal(); + // the speed for the step timer in x100 ms chunks, so a value of 10 // will be 1000ms uint8_t m_stepSpeed;