ev3dev / ev3dev-lang-python

Pure python bindings for ev3dev
MIT License
429 stars 145 forks source link

Can't draw anything to the LCD screen. #765

Closed MafteiAlbert-Alexandru closed 3 years ago

MafteiAlbert-Alexandru commented 3 years ago

micropython-ev3dev2 2.1.0 python3-ev3dev 1.2.0 python3-ev3dev2 2.1.0

I am trying to draw a simple circle to the screen, yet this doesn't work. If it helps, pressing the buttons prints the regular linux arrow keys keycodes("[[^C") on some type of console.

#!/usr/bin/env python3
from ev3dev2.display import Display
from time import sleep
d=Display()
d.circle()

while True: 
    sleep(1)

I also tried drawing a line and it didn't work either.

WesleyJ-128 commented 3 years ago

Just do d.update() to make the screen draw any pending changes. circle() might also want some parameters.