Skip to content

Commit 96ce1eb

Browse files
committed
Clear on start
1 parent 0d0ccb8 commit 96ce1eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/peripherals/display.mlog

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ reset_loop:
1717

1818
read rptr UART 510
1919

20+
draw reset
2021
draw color 255 255 255 255
21-
22-
set LF 10
22+
draw clear 0 0 0
23+
drawflush display1
2324

2425
set CHAR_WIDTH 7
2526
set CHAR_HEIGHT 13
@@ -42,7 +43,7 @@ loop:
4243
op add index rptr 256
4344
read char UART index
4445

45-
jump loop__newline equal char LF
46+
jump loop__newline equal char 10
4647

4748
op add next_x next_x CHAR_WIDTH
4849
jump loop__same_line lessThanEq next_x 497

0 commit comments

Comments
 (0)