-
Notifications
You must be signed in to change notification settings - Fork 125
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
Lots of "Busy Wait: Held high" warnings with every screen redraw (Inky Impression) #205
Comments
same for me. but screen responds normally. |
This is definitely interesting. Broadly the warnings are only there so we know this is happening and can use it as an extra diagnosis step if the display is not working. If it is working then they're safe to ignore. I believe you can use Python's import warnings
warnings.filterwarnings("ignore") |
Confirmed on a new raspberry pi zero 2wh + inky impression73, on the example scripts:
|
That's a fundamental difference compared to my issue - the board is detected in my case. Does it actually redraw the screen correctly for you, or not? |
Yes it does when I force via The failed to detect is an error appart but I do have the held high issue too. |
Okay, I did not have to force anything, though. Let's leave it up to the Pimoroni staff to say whether it's related or not. |
Hello, I contacted support and they just confirmed the same behavior and asked me to report an issue here.
With the 5.7" Inky Impression and the latest version (2.0.0) of the Inky library, the commands output a lot of warnings with every screen redraw:
(pimoroni) pi@raspberrypi:~/inky/examples/7color $ python3 image.py --file ~/photo.jpg
Detected 7-Colour (UC8159)
/home/pi/.virtualenvs/pimoroni/lib/python3.11/site-packages/inky/inky_uc8159.py:331: UserWarning: Busy Wait: Held high. Waiting for 1.00s
warnings.warn(f"Busy Wait: Held high. Waiting for {timeout:0.2f}s")
/home/pi/.virtualenvs/pimoroni/lib/python3.11/site-packages/inky/inky_uc8159.py:331: UserWarning: Busy Wait: Held high. Waiting for 0.20s
warnings.warn(f"Busy Wait: Held high. Waiting for {timeout:0.2f}s")
/home/pi/.virtualenvs/pimoroni/lib/python3.11/site-packages/inky/inky_uc8159.py:331: UserWarning: Busy Wait: Held high. Waiting for 32.00s
warnings.warn(f"Busy Wait: Held high. Waiting for {timeout:0.2f}s")
(pimoroni) pi@raspberrypi:~/inky/examples/7color $
The screen redraws correctly, but the warnings do concern me.
Note: The warnings shown here are produced after running the image.py file from your examples, but the same warnings show even when I run the commands to load and display the image manually in python myself, so it is not limited only to the provided image.py file.
Interestingly, if there are more screen redraws in a single script (such as in the cycle.py file from your examples), only the first redraw produces the warnings.
I checked the source at the referenced line and a related comment says "If the busy_pin is *high* (pulled up by host) then assume we're not getting a signal from inky and wait the timeout period to be safe." but I am not sure what that means.
(If that matters, I'm using RPi Zero 2W and Bookworm.)
The text was updated successfully, but these errors were encountered: