summaryrefslogtreecommitdiffstats
path: root/Led.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-04-10 16:28:48 +0200
committerNao Pross <naopross@thearcway.org>2018-04-10 16:28:48 +0200
commit5580da62728ffe353f50bddabd27b88aba8ac5f2 (patch)
treec4e34c47af058636b3867195fabc6617bb27cbd0 /Led.cpp
parentFirst commit (diff)
downloadSAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.tar.gz
SAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.zip
Add Led class implementation
Diffstat (limited to 'Led.cpp')
-rw-r--r--Led.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/Led.cpp b/Led.cpp
index df9129c..a01bb54 100644
--- a/Led.cpp
+++ b/Led.cpp
@@ -7,10 +7,28 @@
#include "Led.hpp"
-Led::Led(Color color) : _color(color) {
+Led::Led(Color color) : _color(color)
+{
+
}
-Led::~Led() {
+Led::~Led()
+{
+
+}
+
+Led::Color Led::color() const
+{
+ return _color;
}
+void Led::set(bool state)
+{
+ _state = state;
+}
+
+bool Led::state() const
+{
+ return _state;
+}