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.cpp | |
parent | 7ecbb11321a05f7498f36ff91d08b51fd3d00a62 (diff) |
Detect MIDI port
Diffstat (limited to 'StatusLED.cpp')
-rw-r--r-- | StatusLED.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/StatusLED.cpp b/StatusLED.cpp index c3544a5..3013ddb 100644 --- a/StatusLED.cpp +++ b/StatusLED.cpp @@ -1,10 +1,32 @@ #include "StatusLED.h" -StatusLED::StatusLED() +namespace fs = std::filesystem; + +StatusLED::StatusLED(): m_mode{Mode::OK}, m_bpm{60} { } void StatusLED::addLED(const LED& led) { - m_leds.push_back(led); + if (fs::exists(led.green) && fs::exists(led.red)) { + m_leds.push_back(led); + } +} + +void StatusLED::setMode(Mode mode) +{ + m_mode = mode; +} + +void StatusLED::setBPM(int bpm) +{ + m_bpm = bpm; +} + +void StatusLED::initLED(const LED& led) +{ +} + +void StatusLED::updateLED(const LED& led) +{ } |