Also, I was looking at this bit of lightning code Roberto posted for the LED Driver.
Code: Select all
int a=random(5);
for (int i=0;i<a;i++)
{
int newdata=4095;
Wire.beginTransmission(0x40);
Wire.write(0x8+(4*2));
Wire.write(newdata&0xff);
Wire.write(newdata>>8);
Wire.endTransmission();
delay(20+random(50));
newdata=0;
Wire.beginTransmission(0x40);
Wire.write(0x8+(4*2));
Wire.write(newdata&0xff);
Wire.write(newdata>>8);
Wire.endTransmission();
delay(30+random(20));
}
delay(random(1000));
Thanks,
--Colin