diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-20 15:40:14 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-20 15:40:14 +0100 |
commit | 7ecbb11321a05f7498f36ff91d08b51fd3d00a62 (patch) | |
tree | 207c8c133929bd4643b68779391a78bdae06452c /StatusLED.h | |
parent | 78ace79b86aeba3575b2abe2ba617798f6d8da85 (diff) |
Add StatusLED
Diffstat (limited to 'StatusLED.h')
-rw-r--r-- | StatusLED.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/StatusLED.h b/StatusLED.h new file mode 100644 index 0000000..39b19f5 --- /dev/null +++ b/StatusLED.h @@ -0,0 +1,28 @@ +#pragma once + +#include <vector> +#include <filesystem> + +struct LED +{ + std::filesystem::path green; + std::filesystem::path red; +}; + +class StatusLED +{ +public: + enum class Mode + { + OK, // green + Error // red + }; + + StatusLED(); + + void addLED(const LED& led); + +private: + std::vector<LED> m_leds; // on best effort base, those will all show the same status + Mode m_mode; +}; |