If the code hasn't been touched in this long, its probably release-worthy.
This commit is contained in:
@ -39,3 +39,4 @@ Buttons::read()
|
||||
}
|
||||
|
||||
STATIC_ALLOC(Buttons);
|
||||
STATIC_TASK(Buttons);
|
||||
|
@ -21,6 +21,14 @@ public:
|
||||
return InputEvent{};
|
||||
}
|
||||
|
||||
void handleEvent(const InputEvent& evt) override {
|
||||
if (evt.intent == InputEvent::Beat) {
|
||||
m_idx %= m_colors.size();
|
||||
m_reset = true;
|
||||
m_idx++;
|
||||
}
|
||||
}
|
||||
|
||||
void onStart() override {
|
||||
m_reset = true;
|
||||
}
|
||||
|
@ -63,3 +63,4 @@ MPU5060::read()
|
||||
}
|
||||
|
||||
STATIC_ALLOC(MPU5060);
|
||||
STATIC_TASK(MPU5060);
|
||||
|
Reference in New Issue
Block a user