summaryrefslogtreecommitdiffhomepage
path: root/StatusLED.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-20 16:32:33 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-20 16:32:33 +0100
commitef578ac72a70bfbe8aee726d43374c841d77ade4 (patch)
treedaa87af254aa5bc3fbb9b2276f1059c872c2a423 /StatusLED.cpp
parent7ecbb11321a05f7498f36ff91d08b51fd3d00a62 (diff)
Detect MIDI port
Diffstat (limited to 'StatusLED.cpp')
-rw-r--r--StatusLED.cpp26
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)
+{
}