boards: Introduce a shared manifest for all 240x240 devices
This also adds the Fibonaci Clock, Haiku viewer and the Game of Life to the manifest. They are *not* registered by default at this point since, although we can currently spare the internal flash space there is more competition for RAM so we have to trade off out-of-the-box convenience with keeping as much RAM as possible for users to do "cool things". Given the zen of wasp-os is to try to make is as easy as possible for users to become coders we currently favour reserving the space for the cool things (and implicitly encouraging them to write a couple of lines of python to enable the bonus applications. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
4942e3e935
commit
c1c66fb487
4 changed files with 43 additions and 51 deletions
|
@ -1,18 +1,14 @@
|
||||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
# Copyright (C) 2020 Daniel Thompson
|
# Copyright (C) 2020 Daniel Thompson
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(os.getcwd()))
|
||||||
|
import manifest_240x240
|
||||||
|
|
||||||
freeze('.', 'watch.py', opt=3)
|
freeze('.', 'watch.py', opt=3)
|
||||||
freeze('../..',
|
freeze('../..', manifest_240x240.manifest +
|
||||||
(
|
(
|
||||||
'apps/clock.py',
|
|
||||||
'apps/flashlight.py',
|
|
||||||
'apps/heart.py',
|
|
||||||
'apps/launcher.py',
|
|
||||||
'apps/pager.py',
|
|
||||||
'apps/settings.py',
|
|
||||||
'apps/steps.py',
|
|
||||||
'apps/stopwatch.py',
|
|
||||||
'apps/testapp.py',
|
|
||||||
'boot.py',
|
'boot.py',
|
||||||
'draw565.py',
|
'draw565.py',
|
||||||
'drivers/bma421.py',
|
'drivers/bma421.py',
|
||||||
|
@ -23,17 +19,10 @@ freeze('../..',
|
||||||
'drivers/st7789.py',
|
'drivers/st7789.py',
|
||||||
'drivers/touch.py',
|
'drivers/touch.py',
|
||||||
'drivers/vibrator.py',
|
'drivers/vibrator.py',
|
||||||
'fonts/__init__.py',
|
|
||||||
'fonts/clock.py',
|
|
||||||
'fonts/sans24.py',
|
|
||||||
'fonts/sans28.py',
|
|
||||||
'fonts/sans36.py',
|
|
||||||
'gadgetbridge.py',
|
'gadgetbridge.py',
|
||||||
'icons.py',
|
|
||||||
'ppg.py',
|
'ppg.py',
|
||||||
'shell.py',
|
'shell.py',
|
||||||
'wasp.py',
|
'wasp.py',
|
||||||
'widgets.py',
|
|
||||||
),
|
),
|
||||||
opt=3
|
opt=3
|
||||||
)
|
)
|
||||||
|
|
25
wasp/boards/manifest_240x240.py
Normal file
25
wasp/boards/manifest_240x240.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
# Copyright (C) 2020 Daniel Thompson
|
||||||
|
"""Shared manifest for applications that work well on a 240x240 display."""
|
||||||
|
|
||||||
|
manifest = (
|
||||||
|
'apps/clock.py',
|
||||||
|
'apps/flashlight.py',
|
||||||
|
'apps/gameoflife.py',
|
||||||
|
'apps/haiku.py',
|
||||||
|
'apps/heart.py',
|
||||||
|
'apps/launcher.py',
|
||||||
|
'apps/pager.py',
|
||||||
|
'apps/settings.py',
|
||||||
|
'apps/steps.py',
|
||||||
|
'apps/stopwatch.py',
|
||||||
|
'apps/fibonacci_clock.py',
|
||||||
|
'apps/testapp.py',
|
||||||
|
'fonts/__init__.py',
|
||||||
|
'fonts/clock.py',
|
||||||
|
'fonts/sans24.py',
|
||||||
|
'fonts/sans28.py',
|
||||||
|
'fonts/sans36.py',
|
||||||
|
'icons.py',
|
||||||
|
'widgets.py',
|
||||||
|
)
|
|
@ -1,18 +1,14 @@
|
||||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
# Copyright (C) 2020 Daniel Thompson
|
# Copyright (C) 2020 Daniel Thompson
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(os.getcwd()))
|
||||||
|
import manifest_240x240
|
||||||
|
|
||||||
freeze('.', 'watch.py', opt=3)
|
freeze('.', 'watch.py', opt=3)
|
||||||
freeze('../..',
|
freeze('../..', manifest_240x240.manifest +
|
||||||
(
|
(
|
||||||
'apps/clock.py',
|
|
||||||
'apps/flashlight.py',
|
|
||||||
'apps/heart.py',
|
|
||||||
'apps/launcher.py',
|
|
||||||
'apps/pager.py',
|
|
||||||
'apps/settings.py',
|
|
||||||
'apps/steps.py',
|
|
||||||
'apps/stopwatch.py',
|
|
||||||
'apps/testapp.py',
|
|
||||||
'boot.py',
|
'boot.py',
|
||||||
'draw565.py',
|
'draw565.py',
|
||||||
'drivers/bma421.py',
|
'drivers/bma421.py',
|
||||||
|
@ -23,17 +19,10 @@ freeze('../..',
|
||||||
'drivers/signal.py',
|
'drivers/signal.py',
|
||||||
'drivers/st7789.py',
|
'drivers/st7789.py',
|
||||||
'drivers/vibrator.py',
|
'drivers/vibrator.py',
|
||||||
'fonts/__init__.py',
|
|
||||||
'fonts/clock.py',
|
|
||||||
'fonts/sans24.py',
|
|
||||||
'fonts/sans28.py',
|
|
||||||
'fonts/sans36.py',
|
|
||||||
'gadgetbridge.py',
|
'gadgetbridge.py',
|
||||||
'icons.py',
|
|
||||||
'ppg.py',
|
'ppg.py',
|
||||||
'shell.py',
|
'shell.py',
|
||||||
'wasp.py',
|
'wasp.py',
|
||||||
'widgets.py',
|
|
||||||
),
|
),
|
||||||
opt=3
|
opt=3
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
# Copyright (C) 2020 Daniel Thompson
|
# Copyright (C) 2020 Daniel Thompson
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(os.getcwd()))
|
||||||
|
import manifest_240x240
|
||||||
|
|
||||||
freeze('.', 'watch.py', opt=3)
|
freeze('.', 'watch.py', opt=3)
|
||||||
freeze('../..',
|
freeze('../..', manifest_240x240.manifest +
|
||||||
(
|
(
|
||||||
'apps/clock.py',
|
|
||||||
'apps/flashlight.py',
|
|
||||||
'apps/heart.py',
|
|
||||||
'apps/launcher.py',
|
|
||||||
'apps/pager.py',
|
|
||||||
'apps/settings.py',
|
|
||||||
'apps/steps.py',
|
|
||||||
'apps/stopwatch.py',
|
|
||||||
'apps/testapp.py',
|
|
||||||
'boot.py',
|
'boot.py',
|
||||||
'draw565.py',
|
'draw565.py',
|
||||||
'drivers/bma421.py',
|
'drivers/bma421.py',
|
||||||
|
@ -23,17 +19,10 @@ freeze('../..',
|
||||||
'drivers/signal.py',
|
'drivers/signal.py',
|
||||||
'drivers/st7789.py',
|
'drivers/st7789.py',
|
||||||
'drivers/vibrator.py',
|
'drivers/vibrator.py',
|
||||||
'fonts/__init__.py',
|
|
||||||
'fonts/clock.py',
|
|
||||||
'fonts/sans24.py',
|
|
||||||
'fonts/sans28.py',
|
|
||||||
'fonts/sans36.py',
|
|
||||||
'gadgetbridge.py',
|
'gadgetbridge.py',
|
||||||
'icons.py',
|
|
||||||
'ppg.py',
|
'ppg.py',
|
||||||
'shell.py',
|
'shell.py',
|
||||||
'wasp.py',
|
'wasp.py',
|
||||||
'widgets.py',
|
|
||||||
),
|
),
|
||||||
opt=3
|
opt=3
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue