1
0
Fork 0

apps: DemoApp: Fully document the demo app

The demo app is of somewhat niche interest and is disabled by default
but arguable that makes it more important to document it fully since
this app is harder to find the many others.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-06-20 10:43:25 +01:00
parent 1a4b678b2b
commit b6709997cc
5 changed files with 20 additions and 1 deletions

View file

@ -145,6 +145,10 @@ simulator:
:alt: Digital clock application running on the wasp-os simulator :alt: Digital clock application running on the wasp-os simulator
:width: 179 :width: 179
.. image:: res/DemoApp.png
:alt: Simple always-on demo for showing off wasp-os at conferences and shows
:width: 179
.. image:: res/HeartApp.png .. image:: res/HeartApp.png
:alt: Heart rate application running on the wasp-os simulator :alt: Heart rate application running on the wasp-os simulator
:width: 179 :width: 179

View file

@ -45,6 +45,8 @@ Applications
.. automodule:: apps.calc .. automodule:: apps.calc
.. automodule:: apps.demo
.. automodule:: apps.flashlight .. automodule:: apps.flashlight
.. automodule:: apps.haiku .. automodule:: apps.haiku

BIN
res/DemoApp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -8,6 +8,19 @@ This demo is simply an alternating sweep of the Pine64 and
MicroPython logos. It cycles through a variety of colours MicroPython logos. It cycles through a variety of colours
and swaps between the logos every 5 images (so if you change and swaps between the logos every 5 images (so if you change
anything make sure len(colors) is not a multiple of 5). anything make sure len(colors) is not a multiple of 5).
.. figure:: res/DemoApp.png
:width: 179
The demo also includes code to keep the devie awake making it
suitable to run as an always-on application to demonstrate wasp-os at
conferences and shows.
.. note::
Due to it's niche purpose and relatively large size this app is not
included by default in the flash images. It must be separately installed
and enabled.
""" """
import wasp import wasp

View file

@ -3,7 +3,7 @@ import wasp
import importlib import importlib
import os import os
EXCLUDE = ('Notifications', 'Template', 'Demo', 'Faces') EXCLUDE = ('Notifications', 'Template', 'Faces')
def test_README(constructor): def test_README(constructor):
if constructor.NAME in EXCLUDE: if constructor.NAME in EXCLUDE: