From 87053ff323b243e2062297d52d808064b1936c35 Mon Sep 17 00:00:00 2001 From: Alistair MacDonald Date: Tue, 28 Aug 2018 23:23:38 +0100 Subject: [PATCH] Basic phone app for testing This needs work but can dial a number. --- phone/main.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 phone/main.py diff --git a/phone/main.py b/phone/main.py new file mode 100644 index 0000000..83a0b45 --- /dev/null +++ b/phone/main.py @@ -0,0 +1,20 @@ +"""Phone app for baic calling functions +""" +___name___ = "Phone" +___license___ = "MIT" +___dependencies___ = ["dialogs", "ugfx_helper", "app", "stack_nav", "sim800"] +___categories___ = ["System"] +___bootstrapped___ = True + +import sim800 +import ugfx_helper, ugfx +from app import * +from dialogs import * + +ugfx_helper.init() +ugfx.clear() + +notocall = prompt_text("Number to call:") + +if (notocall): + sim800.call(notocall)