blob: bf6e5d6ea81dbd76fb834fbeee712183b45be987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Colours - library for managing the colours on RGB LEDs
*/
#ifndef COLOURS_h
#define COLOURS_h
#include "WProgram.h"
class Colours {
public:
Colours(int rPin,int gPin,int bPin);
void writeRGB(unsigned char r,unsigned char g,unsigned char b);
void writeHSV(unsigned int h,unsigned char s,unsigned char v);
private:
int _rPin,_gPin,_bPin;
};
#endif
|