PaulRB:
Its hard to be certain because your pic was so blurry, but I think I see the problem:
You have only one resistor. You should have one per led.
The only time you can get away with one resistor shared between leds is when you can guarantee that only one led will be lit at any instant.
If you share a resistor between more than one led and then light more than one led at once, they will dim. This is not a problem with power supply, its just Ohm's law.
thank you PaulRB, now is it ok jest to remove the resister, and jest use the leds directly, as i dont want to kill the pins,
CrossRoads:
So like this? (use byte, not int - all values are <255, yes?
byte pinArray0[] = {21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray1[] = {19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray2[] = {17, 18, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray3[] = {15, 16, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray4[] = {13, 14, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray5[] = {11,12, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
byte pinArray6[] = {9, 10 , 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,};
with minor changes between arrays?
Yes, you can do that.
thank you CrossRoads, ill be trying to see if i can properly use this code, example using my test set up, not shure, how to realy plug this in tho , hears what i have so far
byte pinArray0[] = {22, 23, 24, 25, 26, 27, 28, 29, 30,};
byte pinArray1[] = {52, 53,};
int count = 0;
int timer = 1000;
void setup(){
// we make all the declarations at once
for (count=0;count<12;count++) {
pinMode(pinArray0[count], OUTPUT);
pinMode(pinArray1[count], OUTPUT);
}
}
void loop() {
for (count=0;count<9;count++) {
digitalWrite(pinArray0[count], HIGH);
delay(timer);
if (pinarray0 == 9)
{
pinarray1 (count=0;count<2;count++)
}
}
for (count=5;count>=0;count--) {
digitalWrite(pinArray[count], LOW);
delay(timer);
}
}
ill be tryng this out see what happens, as it is im so new to this programming its sad