You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# code.py could be as simple as:importtimei=0whileTrue:
print(i, "some text")
i+=1time.sleep(0.1)
Behavior
The MacroPad display can become garbled if the code above is run, and then interrupted with ctrl-C, and then restarted with ctrl-D. Trash will appear on the right side of the display. Other more display-intensive programs can cause worse problems, like upside-down text, part of screen showing quickly-changing flickering text, etc.
Description
I have a hunch this is due to SPI display transactions being interruptible by ctrl-C. This code allows them to be interrupted:
. There is other code elsewhere in that file that also allows interruptions.
The interruptions probably allow junk to be sent to the display: data interpreted as commands, etc. Perhaps this is in combination with the D/C line getting out of sync.
CircuitPython version
Code/REPL
Behavior
The MacroPad display can become garbled if the code above is run, and then interrupted with ctrl-C, and then restarted with ctrl-D. Trash will appear on the right side of the display. Other more display-intensive programs can cause worse problems, like upside-down text, part of screen showing quickly-changing flickering text, etc.
Description
I have a hunch this is due to SPI display transactions being interruptible by ctrl-C. This code allows them to be interrupted:
circuitpython/ports/raspberrypi/common-hal/busio/SPI.c
Lines 215 to 222 in 23baa02
The interruptions probably allow junk to be sent to the display: data interpreted as commands, etc. Perhaps this is in combination with the D/C line getting out of sync.
May be related to adafruit/Adafruit_CircuitPython_DisplayIO_SH1106#3.
Additional information
From @kattni (different display garbling from a different program):
Animation: https://cdn.discordapp.com/attachments/327298996332658690/862041401708904468/macropad_display_glitch.gif
The text was updated successfully, but these errors were encountered: