Toggle Navigation
Hatchery
Eggs
more leds test
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import badge import ugfx import appglue def home(pushed): if(pushed): appglue.home() badge.init() ugfx.init() badge.leds_init() ugfx.input_init() ugfx.set_lut(ugfx.LUT_NORMAL) ugfx.clear(ugfx.BLACK) ugfx.flush() ugfx.clear(ugfx.WHITE) ugfx.flush() ugfx.string(190,25,"STILL","Roboto_BlackItalic24",ugfx.BLACK) ugfx.string(170,50,"Coloring","PermanentMarker22",ugfx.BLACK) len = ugfx.get_string_width("Coloring","PermanentMarker22") ugfx.line(170, 72, 184 + len, 72, ugfx.BLACK) ugfx.line(180 + len, 52, 180 + len, 70, ugfx.BLACK) ugfx.string(180,75,"Anyway","Roboto_BlackItalic24",ugfx.BLACK) ugfx.flush() ugfx.input_attach(ugfx.BTN_SELECT, home) sha2017 = bytes(24) while True: sha2017 = bytes([0, 0, 0, 0.5, 0, 0, 154, 1, 77, 91, 219, 1, 126, 44, 82, 1, 154, 66, 73, 1, 185, 6, 57, 1, 255, 255, 255,255,255,255,255]) badge.leds_send_data(sha2017)