Hi,
I've followed the tutorial on http://www.arduino.cc/en/Tutorial/ShiftOut, and have the 2 74HC595s set up just like in the tutorial. However, I'm having difficulty figuring out how to control the lights on the 2nd set of lights.
I tried to just send out the shift out command twice, so the first goes to the 2nd 74HC595.. It didn't work
void loop()
{
power(0,1);
power(1,1);
power(2,1);
power(3,1);
power(4,1);
power(5,1);
power(6,1);
power(7,1);
}
void power(int x,int set)
{
delay(150);
x = intpow2(x);
digitalWrite(3,LOW);
shiftOut(2,4, MSBFIRST, x);
shiftOut(2,4, MSBFIRST, x);
digitalWrite(3, HIGH);
//digitalWrite(3,LOW);
}
tips pls?