Closed deshipu closed 2 years ago
With more testing, I noticed that sometimes, randomly, I can get a line or two of the traceback, before the display freezes, so there is some kind of race condition in there perhaps?
A much easier reproducer: the HalloWing M0 Express display no longer works with recent versions of CircuitPython.
The last version that works is adafruit-circuitpython-hallowing_m0_express-en_US-7.0.0-alpha.6.uf2
, the first version that is broken is adafruit-circuitpython-hallowing_m0_express-en_US-7.0.0-beta.0.uf2
.
Further testing leads me to believe that it's commit f0859ac954e71e00e298843dc7f9f9c09a9bf570 that broke this.
I have tried to experiment with this, but I really don't know what is happening. Perhaps the clock that the SPI peripheral uses gets shut down? The code itself doesn't refer to anything directly related to displayio. I give up.
CircuitPython version
Code/REPL
Behavior
The display keeps displaying two squares and text even after the code finishes running. It should instead display the REPL with the "Code done running." message.
Same happens when the code is interrupted with ctrl+c — instead of REPL, the display shows the last thing the program was displaying.
Description
The reverse happens if I copy-paste the display initialization code in the REPL — the display works until ctrl+c is pressed.
Additional information
If the display is initialized in board.c as part of the startup, then it initializes properly, but never displays anything.