import ugfx, appglue,badge

ugfx.init()

ugfx.clear(ugfx.WHITE)
ugfx.orientation(360)
badge.eink_png(10,50,'/lib/reprapworld_get_free_stuff_at_hacker_hotel_2019/alleen_r48bw.png')

ugfx.string(70,0,"Free filament!","PermanentMarker22",ugfx.BLACK)

ugfx.string(70, 50, "Come and find us at the 3D print section", "Roboto_Regular12", ugfx.BLACK)
ugfx.string(70, 65, "show this message", "Roboto_Regular12", ugfx.BLACK)
ugfx.string(70, 80, "and receive 10m of filament for free!", "Roboto_Regular12", ugfx.BLACK)

ugfx.flush()


ugfx.input_init()
ugfx.input_attach(ugfx.BTN_B, lambda pressed: appglue.home())