https://realpython.com/beginners-guide-python-turtle/#getting-started-with-turtle
https://replit.com/@pythonrcc/1#main.py
https://projects.raspberrypi.org/en/projects/astro-pi-mission-zero/0
16/11/2022 ROBOTICS AND CODING CLUB
old
19/10/2022 ROBOTICS AND CODING CLUB
OR
in JavaScript
music.setTempo(120)
for (let index = 0; index < 2; index++) {
music.playTone(262, music.beat(BeatFraction.Whole))
music.playTone(294, music.beat(BeatFraction.Whole))
music.playTone(330, music.beat(BeatFraction.Whole))
music.playTone(262, music.beat(BeatFraction.Whole))
}
for (let index = 0; index < 2; index++) {
music.playTone(330, music.beat(BeatFraction.Whole))
music.playTone(349, music.beat(BeatFraction.Whole))
music.playTone(392, music.beat(BeatFraction.Double))
}
OR in Python
from microbit import *
import music
for x in range(2):
music.play([“C4:4”, “D4”, “E4”, “C4”])
for x in range(2):
music.play([“E4:4”, “F4”, “G4:8”])
How it works
- Connect headphones, or amplified speaker to pins 0 and GND on your micro:bit to hear the sound.
- Pin 0 works as an output when we play music on the micro:bit.
ROBOTICS AND CODING CLUB 12/10/2022
ROBOTICS AND CODING CLUB 05/10/2022
light SensorSunlight sensor
Motion Sensor and Micro