Toggle Navigation
Hatchery
Eggs
Swedish House Maffia
__init__.py
Users
Badges
Login
Register
__init__.py
raw
Content
import display import buttons import random import mch22 import sys import audio a1 = "a1.png" a2 = "a2.mp3" APP_PATH = "/".join(__file__.split("/")[:-1]) sys.path.append(APP_PATH) display.drawPng(0, 0, "%s/%s" % (APP_PATH, a1)) display.flush() while(True): channel_id = audio.play("%s/%s" % (APP_PATH, a2), volume=100) def reboot(pressed): if pressed: mch22.exit_python() buttons.attach(buttons.BTN_A,reboot)