Shift registers
hi project based on http://www.arduino.cc/en/tutorial/shiftout , https://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds/overview . what have board set in shift out tutorial 7 led's per shift register instead of 8 shown in tutorial. as code have is: code: [select] int latchpin = 8; int clockpin = 12; int datapin = 11; byte leds = 0; int firstset = 1; int secondset = 2; void setup() { pinmode(latchpin, output); pinmode(datapin, output); pinmode(clockpin, output); } void loop() { leds = 0; //for first set of (red) leds / first shift register if(firstset==1) { disleds0(); } else if(firstset==2) { disleds1(); } else if(firstset==3) { disleds2(); } //for second set of (green) leds / second shift register if(secondset==1) { disleds0ss(); } else if(secondset==2) { disleds1ss(); } else if(secondset==3) { disleds2ss(); } } void updateshiftregister() { digitalwrite(latchpin, low); ...