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 + } +} 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); +}