diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-20 16:32:33 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-20 16:32:33 +0100 |
commit | ef578ac72a70bfbe8aee726d43374c841d77ade4 (patch) | |
tree | daa87af254aa5bc3fbb9b2276f1059c872c2a423 /StatusLED.h | |
parent | 7ecbb11321a05f7498f36ff91d08b51fd3d00a62 (diff) |
Detect MIDI port
Diffstat (limited to 'StatusLED.h')
-rw-r--r-- | StatusLED.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/StatusLED.h b/StatusLED.h index 39b19f5..b1c0f23 100644 --- a/StatusLED.h +++ b/StatusLED.h @@ -5,6 +5,7 @@ struct LED { + // the root to the whole LED interface, e.g. "/sys/class/leds/ACT" std::filesystem::path green; std::filesystem::path red; }; @@ -14,15 +15,23 @@ class StatusLED public: enum class Mode { - OK, // green - Error // red + OK, // green + OKBeat, // green with heartbeat + Error, // red }; StatusLED(); void addLED(const LED& led); + void setMode(Mode mode); + void setBPM(int bpm); + private: + void initLED(const LED& led); + void updateLED(const LED& led); + std::vector<LED> m_leds; // on best effort base, those will all show the same status Mode m_mode; + int m_bpm; }; |