diff options
author | Nao Pross <naopross@thearcway.org> | 2018-04-10 16:28:48 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-04-10 16:28:48 +0200 |
commit | 5580da62728ffe353f50bddabd27b88aba8ac5f2 (patch) | |
tree | c4e34c47af058636b3867195fabc6617bb27cbd0 /Led.cpp | |
parent | First commit (diff) | |
download | SAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.tar.gz SAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.zip |
Add Led class implementation
Diffstat (limited to 'Led.cpp')
-rw-r--r-- | Led.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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; +} |