blob: 4656a4cbebceda6bb72fde879dcc5a60e4fa2010 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}
|