Toggle Navigation
Hatchery
Eggs
soundQuest
__init__.py
Login
Register
__init__.py
Content
import samd, time c = 16 # 16.35 d = 18 # 18.35 e = 21 # 20.60 f = 22 # 21.83 g = 25 # 24.50 a = 28 # 27.50 h = 31 # 30.87 ?? def play_tones(speed): global c global d global e global f global g global a global h notes = [c, d, e, f, g, a, h] for i in range(7): samd.buzzer(notes[i], 1) time.sleep(speed) def main(): x = 1 while True: play_tones(x) x -= 0.1 if x < 0.1: x = 1 main()