From 9a2918692b23765e9c4e6c6ba29f04c61d9e833e Mon Sep 17 00:00:00 2001 From: Max Lehmann Date: Tue, 8 Oct 2019 12:54:00 +0200 Subject: [PATCH 1/2] my first sketch: beginning of tetris melody --- sketches/max_sketch/tetris/tetris.ino | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 sketches/max_sketch/tetris/tetris.ino diff --git a/sketches/max_sketch/tetris/tetris.ino b/sketches/max_sketch/tetris/tetris.ino new file mode 100644 index 0000000..a5b99af --- /dev/null +++ b/sketches/max_sketch/tetris/tetris.ino @@ -0,0 +1,53 @@ +void setup() { + // put your setup code here, to run once: + +} + +void loop() { + // put your main code here, to run repeatedly: +tone (11, 392, 40); +delay (300); +tone (11, 293, 40); +delay (200); +tone (11, 311, 80); +delay (200); + +tone (11, 349, 40); +delay (300); +tone (11, 349, 80); +delay (200); +tone (11, 293, 40); +delay (200); + +tone (11, 261, 40); +delay (300); +tone (11, 261, 40); +delay (200); +tone (11, 311, 80); +delay (200); + +tone (11, 392, 40); +delay (300); +tone (11, 349, 40); +delay (200); +tone (11, 311, 80); +delay (200); + +tone (11, 293, 40); +delay (300); +tone (11, 311, 80); +delay (200); + +tone (11, 349, 40); +delay (300); +tone (11, 392, 80); +delay (200); + +tone (11, 311, 40); +delay (300); +tone (11, 261, 80); +delay (300); + +tone (11, 261, 80); +delay (3000); +} From 0669f685e44333738df046c6558b4a69327870a5 Mon Sep 17 00:00:00 2001 From: Mark van den Heuvel Date: Tue, 8 Oct 2019 13:00:31 +0200 Subject: [PATCH 2/2] personal new folder --- .../Arduino counting test 1.ino | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sketches/Markvandenheuvel/Arduino counting test 1/Arduino counting test 1.ino diff --git a/sketches/Markvandenheuvel/Arduino counting test 1/Arduino counting test 1.ino b/sketches/Markvandenheuvel/Arduino counting test 1/Arduino counting test 1.ino new file mode 100644 index 0000000..c98a698 --- /dev/null +++ b/sketches/Markvandenheuvel/Arduino counting test 1/Arduino counting test 1.ino @@ -0,0 +1,14 @@ +char z[] = "words are fun!"; //14 character +int x=0; + +void setup() { + Serial.begin(9600); +} +void loop() { + + while(x<15){ + Serial.println(z[x]); + delay(100); // pause loop for 100ms + x++; //x + 1 + 1 + } +}