I use a waterflow blink program to test the 32u4 digital pins by connecting the pins [D0 to D13], so there are 13 led.
The normal blink sequence should be D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D13.
the actual sequence is D2 D3 D1 D0 D5 D7 D8 D9 D10 D11 D13.
when program loaded,the D6 missed. and the first blink is the D2 ,not D0. the D5 is always bright ,no extinguish.
I dont find where is the D12 pin in board ,and there are two D5 pins in board. i dont understand.
When led blink ,two motors rotate, so D5 blink, motor1 turn forward, when D9 blink, motor1 turn back.
When D9 and D10 blink, the tow motors should move backward, but motor2 is not move when motor1 backward normally.
When two motors move forward,the D5 D6 should blink, but the D5 and D7 blink actually. so the D6 connect is unnormal.
Although D6 is not blink, motor2 's forward is not influenced.
so i think the connect may be have some problem in board
below is the program
---------------------------------------------------------------
int ledPin[13] = {0,1,2,3,4,5,6,7,8,9,10,11,13};
void setup()
{
for(int i=0;i<14;i++)
pinMode(ledPin[i],OUTPUT);
}
void loop()
{
digitalWrite(0,HIGH);
delay(500);
digitalWrite(0,LOW);
digitalWrite(1,HIGH);
delay(500);
digitalWrite(1,LOW);
digitalWrite(2,HIGH);
delay(500);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
delay(500);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
delay(500);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
delay(500);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
delay(500);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
delay(500);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
delay(500);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
delay(500);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(500);
digitalWrite(10,LOW);
digitalWrite(11,HIGH);
delay(500);
digitalWrite(11,LOW);
digitalWrite(13,HIGH);
delay(500);
digitalWrite(13,LOW);
}