User:Darija Medic/assignment

From XPUB & Lens-Based wiki
char pat[] = "xxx xx x xx ";
 
void setup() {
  int patlen = strlen(pat);
  
  for (int r=0; r<12; r++) {
    for (int p=0; p<patlen; p++){
    if (pat[p] == 'x') {
      tone(13, 500, 10);
    }
    delay(200);
   }
  }
}

void loop() {}