summaryrefslogtreecommitdiffstats
path: root/Led.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-04-10 16:23:38 +0200
committerNao Pross <naopross@thearcway.org>2018-04-10 16:23:38 +0200
commit334d6c8d7a99184cd6189167adc1d29900b0d270 (patch)
tree8b73a235d3d3ae8106cf23a175d125a656bceb1e /Led.hpp
downloadSAMLiquidSmoke-334d6c8d7a99184cd6189167adc1d29900b0d270.tar.gz
SAMLiquidSmoke-334d6c8d7a99184cd6189167adc1d29900b0d270.zip
First commit
- Main - Barebone structure for Led class
Diffstat (limited to 'Led.hpp')
-rw-r--r--Led.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/Led.hpp b/Led.hpp
new file mode 100644
index 0000000..d4f4dcd
--- /dev/null
+++ b/Led.hpp
@@ -0,0 +1,34 @@
+/*
+ * File: Led.hpp
+ * Author: _prossn
+ *
+ * Created on 10. aprile 2018, 16:07
+ */
+
+#ifndef LED_HPP
+#define LED_HPP
+
+#include <string>
+
+class Led {
+public:
+ enum class Color {
+ RED, GREEN, BLUE
+ };
+
+ Led(Color color);
+ Led() = delete;
+ virtual ~Led();
+
+ Color color();
+
+ void set(bool status);
+ bool status() const;
+
+private:
+ bool _status;
+ Color _color;
+};
+
+#endif /* LED_HPP */
+