Skip to content
Snippets Groups Projects
Commit a38b133d authored by q3k's avatar q3k
Browse files

sim: implement scope_draw

parent bdeac8ff
No related branches found
No related tags found
No related merge requests found
......@@ -409,3 +409,18 @@ def captouch_get_petal_pad(i, x):
def freertos_sleep(ms):
import _time
_time.sleep(ms / 1000.0)
def scope_draw(ctx):
import math
x = -120
ctx.move_to(x, 0)
for i in range(240):
x2 = x + i
y2 = math.sin(i/10) * 80
ctx.line_to(x2, y2)
ctx.line_to(130, 0)
ctx.line_to(130, 130)
ctx.line_to(-130, 130)
ctx.line_to(-130, 0)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment