From c03370bb8c874d1d63299b5dc70e0c4fd9ac2f95 Mon Sep 17 00:00:00 2001 From: Slayr Date: Tue, 8 Oct 2019 12:20:23 +0200 Subject: [PATCH] clap1 --- sketches/my_sk_sandra/clap1.ino | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sketches/my_sk_sandra/clap1.ino diff --git a/sketches/my_sk_sandra/clap1.ino b/sketches/my_sk_sandra/clap1.ino new file mode 100644 index 0000000..ee0ebab --- /dev/null +++ b/sketches/my_sk_sandra/clap1.ino @@ -0,0 +1,26 @@ +void setup() { + // put your setup code here, to run once: + Serial.begin(9600); + + +} + +void loop() { + // put your main code here, to run repeatedly: + char pat[] = "xxx xx x xx "; + Serial.println("STARTOF PROGRAM"); + int i = 0; + while (i<12) { + // do something (with i) + if (pat[i] == 'x') { + tone(11, 440, 40); + delay(40); + tone(11, 220, 40); + + } + Serial.println(pat[i]); + i++; + delay(150); + } + Serial.println("END OF PROGRAM"); +}