2018-08-28 18:23:38 -04:00
|
|
|
"""Phone app for baic calling functions
|
|
|
|
"""
|
|
|
|
___name___ = "Phone"
|
|
|
|
___license___ = "MIT"
|
2018-08-28 18:35:49 -04:00
|
|
|
___dependencies___ = ["app", "dialogs", "sim800", "ugfx_helper"]
|
2018-08-28 18:23:38 -04:00
|
|
|
___categories___ = ["System"]
|
|
|
|
___bootstrapped___ = True
|
|
|
|
|
|
|
|
from app import *
|
|
|
|
from dialogs import *
|
2018-08-28 18:35:49 -04:00
|
|
|
import ugfx
|
|
|
|
import ugfx_helper
|
2018-08-28 18:28:58 -04:00
|
|
|
import sim800
|
2018-08-28 18:23:38 -04:00
|
|
|
|
|
|
|
ugfx_helper.init()
|
|
|
|
ugfx.clear()
|
|
|
|
|
2018-08-30 17:24:06 -04:00
|
|
|
sim800.poweron()
|
|
|
|
|
2018-08-28 18:23:38 -04:00
|
|
|
notocall = prompt_text("Number to call:")
|
|
|
|
|
|
|
|
if (notocall):
|
|
|
|
sim800.call(notocall)
|