User:Darija Medic/assignment: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang=c>
<source lang=c>


Line 19: Line 18:
void loop() {}
void loop() {}


<\source>
</source>

Latest revision as of 08:47, 2 November 2010

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