PCA9635 16-bit I2C-bus LED driver

Dependents:   digitalThermometer Counter SimpleClock printNumber ... more

Revision:
6:3f35bdfec837
Parent:
5:d8c2b5afde56
Child:
7:5c10a0ccc663
--- a/PCA9635.cpp	Wed Jun 29 08:25:02 2011 +0000
+++ b/PCA9635.cpp	Wed Jun 29 08:39:19 2011 +0000
@@ -47,9 +47,6 @@
     }
 }
 
-void PCA9635::setAddress(int address){
-    m_addr = address;
-}
 
 //Single LED On
 void PCA9635::on(char led)
@@ -72,10 +69,8 @@
 void PCA9635::bus(short leds)
 {
     short temp = leds;          //check each bit of leds
-    bool stat = false;          //check LSB of temp
     for(int j=0; j<16; j++) {
-        stat = (bool)(temp & 0x0001);
-        if(stat == true){       //set output accordingly
+        if(temp & 1){       //set output according to LSB
             on(j);                
         }
         else {