User:Darija Medic/assignment: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 1: Line 1:
<source lang=c>
<source lang=c>



Revision as of 08:46, 2 November 2010

<source lang=c>

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() {}

<\source>