blob: 3013ddb125dd7372b243b09980d68ef18b33f617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "StatusLED.h"
namespace fs = std::filesystem;
StatusLED::StatusLED(): m_mode{Mode::OK}, m_bpm{60}
{
}
void StatusLED::addLED(const LED& 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)
{
}
|