PCA9635 16-bit I2C-bus LED driver

Dependents:   digitalThermometer Counter SimpleClock printNumber ... more

Revision:
12:c3634dae1506
Parent:
10:b807470a8b09
--- a/PCA9635.cpp	Wed Jun 29 13:45:40 2011 +0000
+++ b/PCA9635.cpp	Wed Jun 29 13:58:22 2011 +0000
@@ -82,21 +82,6 @@
         temp = (temp >> 1);     //bitwise shift right by 1 to scan next bit
     }
 }
-void PCA9635::bus(short leds, int address)
-{
-    setAddress(address);
-    
-    short temp = leds;          //check each bit of leds
-    for(int j=0; j<16; j++) {
-        if(temp & 1){       //set output according to LSB
-            on(j);                
-        }
-        else {
-            off(j);
-        }
-        temp = (temp >> 1);     //bitwise shift right by 1 to scan next bit
-    }
-}
 
 //Brightness control for single or all LEDs
 void PCA9635::brightness(char led, char value)
@@ -117,27 +102,6 @@
         m_i2c.write(m_addr, cmd, 2);
     }
 }
-//Brightness control for single or all LEDs
-void PCA9635::brightness(char led, char value, int address)
-{
-    setAddress(address);
-    
-    if(led == ALL)
-    {
-        for(char allLeds=0x02; allLeds<0x12; allLeds++)
-        {
-            cmd[0] = allLeds;           
-            cmd[1] = value; 
-            m_i2c.write(m_addr, cmd, 2);
-        }
-    }
-    else
-    {
-        cmd[0] = led + 2;           
-        cmd[1] = value; 
-        m_i2c.write(m_addr, cmd, 2);
-    }
-}