-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Substituted Materia for Vortex, needs renaming
- Loading branch information
1 parent
cfc76c2
commit c7c9f1d
Showing
3 changed files
with
27 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,26 @@ | ||
#ifndef MATERIA_PATTERN_H | ||
#define MATERIA_PATTERN_H | ||
|
||
#include "MultiLedPattern.h" | ||
#include "BlinkStepPattern.h" | ||
|
||
#include "../../Time/Timings.h" | ||
#include "../../Time/Timer.h" | ||
#include "../../Leds/LedTypes.h" | ||
|
||
class MateriaPattern : public MultiLedPattern | ||
class MateriaPattern : public BlinkStepPattern | ||
{ | ||
public: | ||
MateriaPattern(const PatternArgs &args); | ||
MateriaPattern(const PatternArgs& args); | ||
virtual ~MateriaPattern(); | ||
|
||
// init the pattern to initial state | ||
virtual void init() override; | ||
|
||
// pure virtual must override the play function | ||
virtual void play() override; | ||
protected: | ||
virtual void blinkOn() override; | ||
virtual void poststep() override; | ||
|
||
private: | ||
// blink durations | ||
uint8_t m_onDuration1; | ||
uint8_t m_offDuration1; | ||
uint8_t m_onDuration2; | ||
uint8_t m_offDuration2; | ||
// the speed for the step timer | ||
uint8_t m_stepSpeed; | ||
// the step timer | ||
Timer m_blinkTimer1; | ||
Timer m_blinkTimer2; | ||
Timer m_stepTimer; | ||
|
||
LedMap m_ledMap; | ||
|
||
bool m_switch; | ||
// how much the fill has progressed | ||
uint8_t m_progress; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters