summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-09-10 18:53:28 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-09-10 20:17:57 (GMT)
commitba8546dd605799c189ccce778b0c468cb129054d (patch)
treeedbb8dcc118c156f4e5f0b88f3a9032897159a3b /apps
parent2a3ffad07d62fcca7fa8dd3fe387f4377b44d3e4 (diff)
apps: software: Add support for user-defined applications
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'apps')
-rw-r--r--apps/ReadMe.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/ReadMe.py b/apps/ReadMe.py
new file mode 100644
index 0000000..bf6962c
--- /dev/null
+++ b/apps/ReadMe.py
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2021 Daniel Thompson
+"""Example of any automatically discovered application.
+
+Any python file (``.py`` or ``.mpy``) discovered in the ``apps/``
+directory will be automatically added to the Software application.
+"""
+
+import wasp
+
+class ReadMeApp():
+ NAME = "ReadMe"
+
+ def foreground(self):
+ draw = wasp.watch.drawable
+ draw.fill()
+ draw.string('Autoloaded from', 0, 96, width=240)
+ draw.string('apps/ReadMe.py', 0, 96+32, width=240)