Toggle Navigation
Hatchery
Eggs
Song
__init__.py
Login
Register
__init__.py
Content
import easydraw, system, ugfx, sys, samd import random, time def action_exit(pushed): if (pushed): # go back to the home screen system.home() def show_names(): easydraw.msg("Narcotic") # do the magick endlesly song = [1,2,3,4,5,6,7,8,9,10] t = 2 i = 0 x = len(song) while i < x: fr = song[i] t = random.randint(1, 2) samd.buzzer(fr, t) time.sleep(0.1) 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()