From fb8720cfcf5beab4985b4cedc0508621e2171a90 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 12 Nov 2009 21:41:58 +0100 Subject: Basic files, constructor --- Colours.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Colours.cpp (limited to 'Colours.cpp') 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); +} -- cgit v1.2.3