-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Labels on RGBMatrix flicker when writing/reading from SD card (sdcardio) #7682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The RGBmatrix is powered on its own 5V line with an electrolytic capacitor. The flickering of the matrix happens when mounting/writing the SDCard from my tests, this code causes the flicker.
Thought might be something to do with baudrate, but can't set it in init
some benchmarks
|
I don't think it's so likely this is an electrical problem, but rather it's a timing problem. Running an RGB Matrix requires real-time updates of the matrix, and missing an update can create flicker. It takes about 1/3 of the CPU to do it. It's done at interrupt level, so it should be capable of overriding most other things going on. but writing to an SD card may add uninterruptable things, or may cause contention that introduces latency and therefor flickering. We'll need to do some instrumentation to find out what is going on. |
CircuitPython version
Code/REPL
Behavior
I switched to reading/writing to a file on an SD card because writing to CIRCUITPY would lock up other tasks. However, now when using the SD card whenever I try to write/read from the SD card the labels on the RGBMatrix flicker.
hiscore_ctrl.hiscore(value=0)
I used to write to the CIRCUITPY drive but it would cause other tasks to lock up, but I wouldn't get a flicker of the labels.
Description
No response
Additional information
SanDisk Ultra 32GB microSDHC Memory Card
Example of flicker when pressing a button, easiest way to replicate.
flicker.mp4
The text was updated successfully, but these errors were encountered: