summaryrefslogtreecommitdiff
path: root/Colours.cpp
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2009-11-12 21:41:58 +0100
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2009-11-12 21:41:58 +0100
commitfb8720cfcf5beab4985b4cedc0508621e2171a90 (patch)
treea09aa0cc6493455d7da4f3bf13f6fd975bb8097b /Colours.cpp
Basic files, constructor
Diffstat (limited to 'Colours.cpp')
-rw-r--r--Colours.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Colours.cpp b/Colours.cpp
new file mode 100644
index 0000000..4656a4c
--- /dev/null
+++ b/Colours.cpp
@@ -0,0 +1,15 @@
+/*
+ * Colours - library for managing the colours on RGB LEDs
+ */
+
+#include "WProgram.h"
+#include "Colours.h"
+
+Colours::Colours(int rPin,int gPin,int bPin) {
+ _rPin = rPin;
+ _gPin = gPin;
+ _bPin = bPin;
+ pinMode(_rPin,OUTPUT);
+ pinMode(_gPin,OUTPUT);
+ pinMode(_bPin,OUTPUT);
+}