When I upload this code LED at pin 13 goes HIGH and that's it. My goal is to make it blink in the order specified in the array. What am I doing wrong?
int Array[] = {1,1,1,0,1,0,0,0,1,0,1,0,1,1,0,0,1,0,1,0,1,1,0,0};
int Data = 13;
int i = 0;
void setup() {
pinMode(Data, OUTPUT);
}
void loop() {
int x = Array[i];
delay(200);
digitalWrite(Data, x);
i = i+1;
if (i==23) {
i=0;
}
}