commit
b8afa052b9
|
@ -5,11 +5,23 @@ ___license___ = "MIT"
|
||||||
___dependencies___ = ["sleep", "app"]
|
___dependencies___ = ["sleep", "app"]
|
||||||
___categories___ = ["EMF"]
|
___categories___ = ["EMF"]
|
||||||
|
|
||||||
import ugfx, os, time, sleep, app
|
import ugfx, sleep, app
|
||||||
|
from tilda import Buttons
|
||||||
|
|
||||||
|
|
||||||
# initialize screen
|
# initialize screen
|
||||||
ugfx.init()
|
ugfx.init()
|
||||||
ugfx.clear()
|
ugfx.clear()
|
||||||
|
|
||||||
ugfx.text(5, 5, "Hello World!", ugfx.BLACK)
|
# show text
|
||||||
|
ugfx.text(5, 5, "Hello World!!", ugfx.BLACK)
|
||||||
|
|
||||||
|
|
||||||
|
# waiting until a button has been pressed
|
||||||
|
while (not Buttons.is_pressed(Buttons.BTN_A)) and (not Buttons.is_pressed(Buttons.BTN_B)) and (not Buttons.is_pressed(Buttons.BTN_Menu)):
|
||||||
|
sleep.wfi()
|
||||||
|
|
||||||
|
|
||||||
|
# closing
|
||||||
|
ugfx.clear()
|
||||||
|
app.restart_to_default()
|
||||||
|
|
Loading…
Reference in New Issue