1
0
Fork 0

HeartApp: draw black line ahead of cursor

Helps seeing where the cursor is when displaying data over previous screen

![image](https://user-images.githubusercontent.com/6101998/134028533-5f190252-ad71-43c5-accc-c2b7b6c49663.png)

Signed-off-by: k <k@klabz.org>
This commit is contained in:
Rudy Ges 2021-09-20 17:23:26 +02:00 committed by Daniel Thompson
parent 90411fb9f8
commit bd91a1076d

View file

@ -90,6 +90,8 @@ class HeartApp():
x = self._x x = self._x
draw.fill(0, x, 32, 1, 208-spl) draw.fill(0, x, 32, 1, 208-spl)
draw.fill(color, x, 239-spl, 1, spl) draw.fill(color, x, 239-spl, 1, spl)
if x < 238:
draw.fill(0, x+1, 32, 2, 208)
x += 2 x += 2
if x >= 240: if x >= 240:
x = 0 x = 0