bbcmicrobit / PythonEditor

A MicroPython editor for the BBC micro:bit that works with browsers.
https://python.microbit.org/
MIT License
198 stars 130 forks source link

A small bug for lcd.off() #340

Closed crouse12 closed 3 years ago

crouse12 commented 3 years ago

python editor beta 2.1.0-beta.6 for microbit v2 has a small error When I use the following python program, led screen on microbit v2 has some errors.

from microbit import *

display.off()
while True:
    pin10.write_analog(1000)
    sleep(1000)
    pin10.write_analog(0)
    sleep(1000)
    display.on()
    display.show('Hello')
    display.off()

PS. python editor Editor Version: 2.0.1 for microbit v1 does not have this bug

microbit-carlos commented 3 years ago

Thanks for the report @crouse12! I've seen you've already opened this in the MicroPython repo, so I'll close this here. https://github.com/microbit-foundation/micropython-microbit-v2/issues/12