Permalink
Browse files

Revert "scripted arduino 1.0 changes (use standard C type names)"

This reverts commit 5c88d92.
  • Loading branch information...
1 parent 5c88d92 commit 272b029de6786224283fdd19879e849049a35f85 @rambo committed Jan 24, 2012
Showing with 10 additions and 10 deletions.
  1. +7 −7 pca9635RGB.cpp
  2. +3 −3 pca9635RGB.h
View
@@ -3,7 +3,7 @@
/**
* board_num is the number selected on the BCD rotary switch
*/
-void pca9635RGB::begin(uint8_t board_num, uint8_t wire_begin)
+void pca9635RGB::begin(byte board_num, boolean wire_begin)
{
if (wire_begin)
{
@@ -24,7 +24,7 @@ void pca9635RGB::begin(uint8_t board_num, uint8_t wire_begin)
}
// Funky way to handle default arguments
-void pca9635RGB::begin(uint8_t board_addr)
+void pca9635RGB::begin(byte board_addr)
{
pca9635RGB::begin(board_addr, true);
}
@@ -34,17 +34,17 @@ void pca9635RGB::begin()
pca9635RGB::begin(0x0, true);
}
-uint8_t pca9635RGB::set_rgb(uint8_t ledno, byte rcycle, byte gcycle, byte bcycle)
+boolean pca9635RGB::set_rgb(byte ledno, byte rcycle, byte gcycle, byte bcycle)
{
// TODO: When I2C library allows lower level access write as single repeated-start sequence for atomicity
- uint8_t rstat = R.set_led_pwm(ledno, rcycle);
- uint8_t gstat = G.set_led_pwm(ledno, gcycle);
- uint8_t bstat = B.set_led_pwm(ledno, bcycle);
+ boolean rstat = R.set_led_pwm(ledno, rcycle);
+ boolean gstat = G.set_led_pwm(ledno, gcycle);
+ boolean bstat = B.set_led_pwm(ledno, bcycle);
return rstat && gstat && bstat;
}
/*
-pca9635::set_led_pwm(uint8_t ledno, byte cycle)
+pca9635::set_led_pwm(byte ledno, byte cycle)
{
*/
View
@@ -8,11 +8,11 @@ class pca9635RGB
{
public:
// Initialize the object and chip
- void begin(uint8_t board_num, uint8_t wire_begin);
+ void begin(byte board_num, boolean wire_begin);
// A funky way to handle optional arguments
- void begin(uint8_t board_num);
+ void begin(byte board_num);
void begin();
- uint8_t set_rgb(uint8_t ledno, byte rcycle, byte gcycle, byte bcycle);
+ boolean set_rgb(byte ledno, byte rcycle, byte gcycle, byte bcycle);
// Color channel instances, allow public access for debugging
pca9635 R;
pca9635 G;

0 comments on commit 272b029

Please sign in to comment.