diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-08 17:37:43 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-08 17:39:39 (GMT) |
| commit | 799a66c9b95a1f95eba8b3412c45b6290ec68a73 (patch) | |
| tree | fb731f2a97acda16c95887a1a1ae52f392abfb48 /wasp/flashlight.py | |
| parent | b5b96bd7760f76d9bb476eb835f49b3c9586ca5c (diff) | |
wasp: Move the apps into their own directory.
Diffstat (limited to 'wasp/flashlight.py')
| -rw-r--r-- | wasp/flashlight.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/wasp/flashlight.py b/wasp/flashlight.py deleted file mode 100644 index d71342b..0000000 --- a/wasp/flashlight.py +++ /dev/null @@ -1,34 +0,0 @@ -import watch -import manager - -from draw565 import Draw565 - -class FlashlightApp(object): - """Trivial flashlight application. - - Shows a pure white screen with the backlight set to maximum. - """ - - def __init__(self): - self.backlight = None - - def foreground(self, manager, effect=None): - """Activate the application.""" - self.on_screen = ( -1, -1, -1, -1, -1, -1 ) - self.draw(effect) - manager.request_tick(1000) - - def background(self): - """De-activate the application (without losing state).""" - pass - - def sleep(self): - return False - - def tick(self, ticks): - pass - - def draw(self, effect=None): - """Redraw the display from scratch.""" - display = watch.display - display.fill(0xffff) |
