summaryrefslogtreecommitdiffstats
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
parentFirst commit (diff)
downloadSAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.tar.gz
SAMLiquidSmoke-5580da62728ffe353f50bddabd27b88aba8ac5f2.zip
Add Led class implementation
-rw-r--r--Led.cpp22
-rw-r--r--Led.hpp6
-rw-r--r--nbproject/Makefile-genesis.properties9
-rw-r--r--nbproject/Makefile-variables.mk13
4 files changed, 45 insertions, 5 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;
+}
diff --git a/Led.hpp b/Led.hpp
index d4f4dcd..b082d7d 100644
--- a/Led.hpp
+++ b/Led.hpp
@@ -20,13 +20,13 @@ public:
Led() = delete;
virtual ~Led();
- Color color();
+ Color color() const;
void set(bool status);
- bool status() const;
+ bool state() const;
private:
- bool _status;
+ bool _state;
Color _color;
};
diff --git a/nbproject/Makefile-genesis.properties b/nbproject/Makefile-genesis.properties
new file mode 100644
index 0000000..72e3287
--- /dev/null
+++ b/nbproject/Makefile-genesis.properties
@@ -0,0 +1,9 @@
+#
+#Tue Apr 10 16:26:14 CEST 2018
+default.com-microchip-mplab-nbide-toolchainXC32-XC32LanguageToolchain.md5=002e07fc35a732566b3c80c1ed2897e8
+default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc32\\v1.44\\bin
+configurations-xml=af4b92e7e53912485081aebfc8b92899
+com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=5d30ff5128b14865c8a3796a8f0bb8a0
+default.languagetoolchain.version=1.44
+host.platform=windows
+conf.ids=default
diff --git a/nbproject/Makefile-variables.mk b/nbproject/Makefile-variables.mk
new file mode 100644
index 0000000..88f7cd0
--- /dev/null
+++ b/nbproject/Makefile-variables.mk
@@ -0,0 +1,13 @@
+#
+# Generated - do not edit!
+#
+# NOCDDL
+#
+CND_BASEDIR=`pwd`
+# default configuration
+CND_ARTIFACT_DIR_default=dist/default/production
+CND_ARTIFACT_NAME_default=LiquidSmoke.X.production.hex
+CND_ARTIFACT_PATH_default=dist/default/production/LiquidSmoke.X.production.hex
+CND_PACKAGE_DIR_default=${CND_DISTDIR}/default/package
+CND_PACKAGE_NAME_default=liquidsmoke.x.tar
+CND_PACKAGE_PATH_default=${CND_DISTDIR}/default/package/liquidsmoke.x.tar