From b6709997ccc3ff66cc73e01503edda128e130143 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 20 Jun 2021 10:43:25 +0100 Subject: [PATCH] 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 --- README.rst | 4 ++++ docs/apps.rst | 2 ++ res/DemoApp.png | Bin 0 -> 13545 bytes wasp/apps/demo.py | 13 +++++++++++++ wasp/boards/simulator/test_qa.py | 2 +- 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 res/DemoApp.png diff --git a/README.rst b/README.rst index b96f77a..81b4439 100644 --- a/README.rst +++ b/README.rst @@ -145,6 +145,10 @@ simulator: :alt: Digital clock application running on the wasp-os simulator :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 :alt: Heart rate application running on the wasp-os simulator :width: 179 diff --git a/docs/apps.rst b/docs/apps.rst index 39205ae..17bf149 100644 --- a/docs/apps.rst +++ b/docs/apps.rst @@ -45,6 +45,8 @@ Applications .. automodule:: apps.calc +.. automodule:: apps.demo + .. automodule:: apps.flashlight .. automodule:: apps.haiku diff --git a/res/DemoApp.png b/res/DemoApp.png new file mode 100644 index 0000000000000000000000000000000000000000..6d5e21ae4e4202e9623bec63a1e827e9f80246a8 GIT binary patch literal 13545 zcmeHtXH=BS)+Q)|0s<--B};CaZgK;Xb4HMyyGa6#b0`hhmS572&ui9(FS)zkW%n1g{Ft3GlS* z_N%0xTJ)a2y4-8Hhr3#eKE}1DJ5b_vc)8-vYQnFudhAskJ*IWgTXG&Oy~J5Kt$NJI zYMD5*HBH?da_w_seog3ELG8-NN>R7bf#h!2U}*~H{;XQjJJV?m6FqdCY8#r0$XV8L z>>`{_dvV&;Q>w{TyBOHx{C-KVQ}Y5sSaAWWueXLi!TlUJKA5YA2h@GiK~;?9~IT5(P^=%TS`B!-7@P8 z@L6g}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