diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-09 00:00:13 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-09 00:00:13 (GMT) |
| commit | 031d139b7c31f83791c8c35cc78624aa1eda6da2 (patch) | |
| tree | 0322cf93239101571d3e8b1c29a9e0980313abe0 /wasp/apps/testapp.py | |
| parent | 5413d826d7ffe825b759cd013f9f68e9311aee01 (diff) | |
wasp: draw565: Refactor to allow apps to focus on the drawable.
Diffstat (limited to 'wasp/apps/testapp.py')
| -rw-r--r-- | wasp/apps/testapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index 56a3853..9f512f1 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -38,7 +38,7 @@ class TestApp(): draw.string('({}, {})'.format(event[1], event[2]), 0, 108, width=240) elif self.test == 'String': - watch.display.fill(0, 0, 30, 240, 240-30) + draw.fill(0, 0, 30, 240, 240-30) t = machine.Timer(id=1, period=8000000) t.start() draw.string("The quick brown", 12, 24+24) @@ -56,7 +56,7 @@ class TestApp(): def draw(self, effect=None): """Redraw the display from scratch.""" watch.display.mute(True) - watch.display.fill(0) + watch.drawable.fill() watch.drawable.string('{} test'.format(self.test), 0, 6, width=240) watch.display.mute(False) |
