From ea116a72b49922aa889fccae6de3fb826c14b8c4 Mon Sep 17 00:00:00 2001 From: Benjamin Boortz Date: Sun, 2 Sep 2018 10:41:52 +0100 Subject: [PATCH 1/5] closing implemented --- hello_world/main.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hello_world/main.py b/hello_world/main.py index 4955105..301cd57 100644 --- a/hello_world/main.py +++ b/hello_world/main.py @@ -5,11 +5,22 @@ ___license___ = "MIT" ___dependencies___ = ["sleep", "app"] ___categories___ = ["EMF"] -import ugfx, os, time, sleep, app +import ugfx, sleep, app # initialize screen ugfx.init() ugfx.clear() +# 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() From 7ab76e6d1dd3c64816d6103c6ed0436584470c75 Mon Sep 17 00:00:00 2001 From: Benjamin Boortz Date: Sun, 2 Sep 2018 10:55:45 +0100 Subject: [PATCH 2/5] hello world imports fixed --- hello_world/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_world/main.py b/hello_world/main.py index 301cd57..f84181e 100644 --- a/hello_world/main.py +++ b/hello_world/main.py @@ -5,7 +5,7 @@ ___license___ = "MIT" ___dependencies___ = ["sleep", "app"] ___categories___ = ["EMF"] -import ugfx, sleep, app +import ugfx, os, time, sleep, app # initialize screen From 8053c115a63dfc13fb087f0962817a508d38013c Mon Sep 17 00:00:00 2001 From: Benjamin Boortz Date: Sun, 2 Sep 2018 11:12:30 +0100 Subject: [PATCH 3/5] hello world imports fixed --- hello_world/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hello_world/main.py b/hello_world/main.py index f84181e..7e87c24 100644 --- a/hello_world/main.py +++ b/hello_world/main.py @@ -6,6 +6,7 @@ ___dependencies___ = ["sleep", "app"] ___categories___ = ["EMF"] import ugfx, os, time, sleep, app +from tilda import Buttons # initialize screen From 13ff1942a707a56854ca9c8a36e6055809e254dd Mon Sep 17 00:00:00 2001 From: Benjamin Boortz Date: Sun, 2 Sep 2018 11:17:23 +0100 Subject: [PATCH 4/5] hello world imports fixed --- hello_world/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_world/main.py b/hello_world/main.py index 7e87c24..82abdbd 100644 --- a/hello_world/main.py +++ b/hello_world/main.py @@ -14,7 +14,7 @@ ugfx.init() ugfx.clear() # show text -ugfx.text(5, 5, "Hello World!", ugfx.BLACK) +ugfx.text(5, 5, "Hello World!!", ugfx.BLACK) # waiting until a button has been pressed From cad13f88695966992183899cb6a8c44d93da842d Mon Sep 17 00:00:00 2001 From: Benjamin Boortz Date: Sun, 2 Sep 2018 12:03:00 +0100 Subject: [PATCH 5/5] hello world imports fixed --- hello_world/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_world/main.py b/hello_world/main.py index 82abdbd..7cdd174 100644 --- a/hello_world/main.py +++ b/hello_world/main.py @@ -5,7 +5,7 @@ ___license___ = "MIT" ___dependencies___ = ["sleep", "app"] ___categories___ = ["EMF"] -import ugfx, os, time, sleep, app +import ugfx, sleep, app from tilda import Buttons