summaryrefslogtreecommitdiffstats
path: root/Led.hpp
diff options
context:
space:
mode:
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 */
+