diff --git a/sim/fakes/hardware.py b/sim/fakes/hardware.py index 38438af9327846b77a81a3db1c84aa51b6e0354d..7c86b947afaefe6424b8497261540fc0339fdd66 100644 --- a/sim/fakes/hardware.py +++ b/sim/fakes/hardware.py @@ -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