summaryrefslogtreecommitdiffhomepage
path: root/StatusLED.cpp
diff options
context:
space:
mode:
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)
+{
}