You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Thompson a527624cfa
Merge branch 'master' into beacon
10 months ago
..
Beacon.py Use functions from driver in beacon app 10 months ago
GameOfLife.py Include the gallery app in micropython.zip 1 year ago
Level.py Allow to set accel sensor orientation 10 months ago
Morse.py feat: morse app saves text to file + erase + space + newline 1 year ago
ReadMe.py apps: software: Add support for user-defined applications 2 years ago

ReadMe.py

# 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)