Toggle Navigation
Hatchery
Eggs
Boci boci song
__init__.py
Login
Register
__init__.py
Content
import easydraw, system, ugfx, sys, samd import time x = [1,3,1,3,5,0,5,0,1,3,1,3,5,0,5,0,8,7,6,5,4,0,6,0,5,4,3,2,1,0,1,0] def action_exit(pushed): if (pushed): # go back to the home screen system.home() def show_names(): easydraw.msg("Boci boci") i = 0 # do the song from the array while i < 32: fr = x[i] t = 4 samd.buzzer(fr, t) time.sleep(0.5) i = i + 1 def main(): ugfx.input_init() ugfx.input_attach(ugfx.BTN_B, action_exit) ugfx.input_attach(ugfx.BTN_START, action_exit) show_names() sys.stdin.read(1) #Wait for any key action_exit(True) main()