summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2009-11-12 22:01:08 +0100
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2009-11-12 22:01:08 +0100
commitc66b57acbc0350c1277e501b779bb468506dc95e (patch)
tree2850c8f0a31f1401e72b8a3e7ad229fb5fde4eac
parentc206da06aa1640f34dfb33bc37a7e5eb990a6d44 (diff)
Fixed parameters types
-rw-r--r--Colours.cpp4
-rw-r--r--Colours.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Colours.cpp b/Colours.cpp
index da33c26..b2ae38e 100644
--- a/Colours.cpp
+++ b/Colours.cpp
@@ -14,8 +14,8 @@ Colours::Colours(int rPin,int gPin,int bPin) {
pinMode(_bPin,OUTPUT);
}
-void Colours::writeRGB(char r,char g,char b) {
+void Colours::writeRGB(unsigned char r,unsigned char g,unsigned char b) {
}
-void Colours::writeHSV(char h,char s,char v) {
+void Colours::writeHSV(unsigned int h,unsigned char s,unsigned char v) {
}
diff --git a/Colours.h b/Colours.h
index fb57af4..bf6e5d6 100644
--- a/Colours.h
+++ b/Colours.h
@@ -10,8 +10,8 @@
class Colours {
public:
Colours(int rPin,int gPin,int bPin);
- void writeRGB(char r,char g,char b);
- void writeHSV(char h,char s,char v);
+ 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;
};