2020-11-08 15:28:38 +01:00
|
|
|
.. _Application Library:
|
|
|
|
|
|
|
|
Application Library
|
|
|
|
===================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
Built-in
|
|
|
|
--------
|
|
|
|
|
2020-11-22 10:25:24 +01:00
|
|
|
The built-in application are summarised below but because these apps are
|
|
|
|
treated as examples they are described in detail as part of the
|
2020-11-08 15:28:38 +01:00
|
|
|
:ref:`Wasp-os Reference Manual`:
|
|
|
|
|
|
|
|
* :py:class:`.ClockApp`
|
|
|
|
* :py:class:`.FlashlightApp`
|
|
|
|
* :py:class:`.LauncherApp`
|
|
|
|
* :py:class:`.PagerApp`
|
|
|
|
* :py:class:`.TestApp`
|
|
|
|
* :py:class:`.TemplateApp``
|
|
|
|
|
|
|
|
Watch faces
|
|
|
|
-----------
|
|
|
|
|
2020-12-27 10:13:49 +01:00
|
|
|
.. automodule:: apps.chrono
|
|
|
|
|
|
|
|
This application is very simple and largely serves as an example of how to
|
|
|
|
implement traditional watch faces.
|
|
|
|
It is not included by default in any image.
|
|
|
|
Instead it can be transferred to the device dynamically using wasptool:
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
./tools/wasptool --exec wasp/apps/chrono.py --eval 'wasp.system.register(ChronoApp())'
|
|
|
|
|
2020-11-08 15:28:38 +01:00
|
|
|
.. automodule:: apps.fibonacci_clock
|
|
|
|
|
2020-11-22 10:25:24 +01:00
|
|
|
This app is enabled by default in the simulator.
|
|
|
|
The app is also frozen into the firmware image but it is disabled by
|
|
|
|
default in order to keep RAM available for user developed applications.
|
|
|
|
It can be enabled by modifying ``main.py``.
|
2020-11-08 15:28:38 +01:00
|
|
|
|
|
|
|
Games
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. automodule:: apps.gameoflife
|
|
|
|
|
2020-11-22 10:25:24 +01:00
|
|
|
This app is enabled by default in the simulator.
|
|
|
|
The app is also frozen into the firmware image but it is disabled by
|
|
|
|
default in order to keep RAM available for user developed applications.
|
|
|
|
It can be enabled by modifying ``main.py``.
|
2020-11-22 10:22:50 +01:00
|
|
|
|
2020-11-27 11:39:40 +01:00
|
|
|
.. automodule:: apps.snake
|
|
|
|
|
|
|
|
This app is enabled by default in the simulator.
|
|
|
|
The app is also frozen into the firmware image but it is disabled by
|
|
|
|
default in order to keep RAM available for user developed applications.
|
|
|
|
It can be enabled by modifying ``main.py``.
|
|
|
|
|
2020-11-22 10:22:50 +01:00
|
|
|
Integration
|
|
|
|
-----------
|
|
|
|
|
2020-11-29 13:23:05 +01:00
|
|
|
.. automodule:: apps.alarm
|
|
|
|
|
|
|
|
This app is enabled by default in the simulator.
|
|
|
|
The app is also frozen into the firmware image but it is disabled by
|
|
|
|
default in order to keep RAM available for user developed applications.
|
|
|
|
It can be enabled by modifying ``main.py``.
|
|
|
|
|
2020-11-22 10:22:50 +01:00
|
|
|
.. automodule:: apps.musicplayer
|
|
|
|
|
|
|
|
This app is enabled by default in the simulator.
|
|
|
|
The app is also frozen into the firmware image but it is disabled by
|
|
|
|
default in order to keep RAM available for user developed applications.
|
|
|
|
It can be enabled by modifying ``main.py``.
|