wasp: Move the apps into their own directory.
This commit is contained in:
parent
b5b96bd776
commit
799a66c9b9
6 changed files with 11 additions and 10 deletions
|
@ -11,7 +11,7 @@ System management
|
|||
Applications
|
||||
------------
|
||||
|
||||
.. automodule:: clock
|
||||
.. automodule:: apps.clock
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
freeze('.', 'watch.py', opt=3)
|
||||
freeze('../..',
|
||||
(
|
||||
'apps/clock.py',
|
||||
'apps/testapp.py',
|
||||
'apps/flashlight.py',
|
||||
'boot.py',
|
||||
'clock.py',
|
||||
'demo.py',
|
||||
'draw565.py',
|
||||
'drivers/battery.py',
|
||||
|
@ -11,14 +13,12 @@ freeze('../..',
|
|||
'drivers/signal.py',
|
||||
'drivers/st7789.py',
|
||||
'drivers/vibrator.py',
|
||||
'flashlight.py',
|
||||
'fonts/clock.py',
|
||||
'fonts/sans24.py',
|
||||
'icons.py',
|
||||
'logo.py',
|
||||
'manager.py',
|
||||
'shell.py',
|
||||
'testapp.py',
|
||||
'widgets.py',
|
||||
),
|
||||
opt=3
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import clock
|
||||
import flashlight
|
||||
import testapp
|
||||
import gc
|
||||
import machine
|
||||
|
||||
from apps.clock import ClockApp
|
||||
from apps.flashlight import FlashlightApp
|
||||
from apps.testapp import TouchTestApp
|
||||
|
||||
DOWN = 1
|
||||
UP = 2
|
||||
LEFT = 3
|
||||
|
@ -19,9 +20,9 @@ class Manager(object):
|
|||
self.app = None
|
||||
|
||||
self.applications = [
|
||||
clock.ClockApp(),
|
||||
flashlight.FlashlightApp(),
|
||||
testapp.TouchTestApp()
|
||||
ClockApp(),
|
||||
FlashlightApp(),
|
||||
TouchTestApp()
|
||||
]
|
||||
|
||||
self.watch.display.poweron()
|
||||
|
|
Loading…
Add table
Reference in a new issue