Toggle Navigation
Hatchery
Eggs
ownourdomecam
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import ugfx import badge import appglue badge.init() badge.vibrator_init() ugfx.init() ugfx.clear(ugfx.BLACK) ugfx.string(15,15,"Dutchpicknick","Roboto_BlackItalic24",ugfx.WHITE) ugfx.string(15,40,"tentcam.dutchpicknick.nl","Roboto_BlackItalic24",ugfx.WHITE) ugfx.flush() def home(pressed): if pressed: appglue.home() def buzz(pushed): if(pushed): badge.vibrator_activate(0xFF) ugfx.input_init() ugfx.input_attach(ugfx.JOY_UP, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.JOY_DOWN, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.JOY_LEFT, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.JOY_RIGHT, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.BTN_A, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.BTN_B, lambda pressed: buzz(pressed)) ugfx.input_attach(ugfx.BTN_START, home) ugfx.input_attach(ugfx.BTN_SELECT, lambda pressed: buzz(pressed)) while True: pass