1
0
Fork 0

apps: Remove unused support for effect animation

After a bit of testing I have not yet come up with a fast, visually
acceptable horizontal animated effect. Instead we simply reply on
screen blanking during the redraw... meaning there is no need for an
effect hint.
This commit is contained in:
Daniel Thompson 2020-03-28 17:19:34 +00:00
parent d10f3dbc49
commit 0cc7987689
3 changed files with 9 additions and 9 deletions

View file

@ -29,10 +29,10 @@ class ClockApp():
def __init__(self): def __init__(self):
self.meter = wasp.widgets.BatteryMeter() self.meter = wasp.widgets.BatteryMeter()
def foreground(self, effect=None): def foreground(self):
"""Activate the application.""" """Activate the application."""
self.on_screen = ( -1, -1, -1, -1, -1, -1 ) self.on_screen = ( -1, -1, -1, -1, -1, -1 )
self.draw(effect) self.draw()
wasp.system.request_tick(1000) wasp.system.request_tick(1000)
def tick(self, ticks): def tick(self, ticks):
@ -48,7 +48,7 @@ class ClockApp():
def wake(self): def wake(self):
self.update() self.update()
def draw(self, effect=None): def draw(self):
"""Redraw the display from scratch.""" """Redraw the display from scratch."""
draw = wasp.watch.drawable draw = wasp.watch.drawable

View file

@ -9,10 +9,10 @@ class FlashlightApp(object):
Shows a pure white screen with the backlight set to maximum. Shows a pure white screen with the backlight set to maximum.
""" """
def foreground(self, effect=None): def foreground(self):
"""Activate the application.""" """Activate the application."""
self.on_screen = ( -1, -1, -1, -1, -1, -1 ) self.on_screen = ( -1, -1, -1, -1, -1, -1 )
self.draw(effect) self.draw()
wasp.system.request_tick(1000) wasp.system.request_tick(1000)
self._brightness = wasp.system.brightness self._brightness = wasp.system.brightness
@ -28,7 +28,7 @@ class FlashlightApp(object):
def tick(self, ticks): def tick(self, ticks):
wasp.system.keep_awake() wasp.system.keep_awake()
def draw(self, effect=None): def draw(self):
"""Redraw the display from scratch.""" """Redraw the display from scratch."""
display = wasp.watch.display display = wasp.watch.display
display.fill(0xffff) display.fill(0xffff)

View file

@ -12,10 +12,10 @@ class TestApp():
self.tests = ('Touch', 'String') self.tests = ('Touch', 'String')
self.test = self.tests[0] self.test = self.tests[0]
def foreground(self, effect=None): def foreground(self):
"""Activate the application.""" """Activate the application."""
self.on_screen = ( -1, -1, -1, -1, -1, -1 ) self.on_screen = ( -1, -1, -1, -1, -1, -1 )
self.draw(effect) self.draw()
wasp.system.request_event(wasp.EventMask.TOUCH | wasp.system.request_event(wasp.EventMask.TOUCH |
wasp.EventMask.SWIPE_UPDOWN) wasp.EventMask.SWIPE_UPDOWN)
@ -55,7 +55,7 @@ class TestApp():
return True return True
def draw(self, effect=None): def draw(self):
"""Redraw the display from scratch.""" """Redraw the display from scratch."""
wasp.watch.display.mute(True) wasp.watch.display.mute(True)
wasp.watch.drawable.fill() wasp.watch.drawable.fill()