summaryrefslogtreecommitdiff
path: root/apps/ReadMe.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ReadMe.py')
-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)