-
Notifications
You must be signed in to change notification settings - Fork 769
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
Glitch when trying to display a dash (ht16k33 7 segment LED backpack) #2385
Comments
Thank you for pointing out the dash not printing and using the set_digit_raw() work around with the correct binary value. I'll wire up my hardware and probably end up submitting a PR to the appropriate github repo (ht16k33 circuitpython library) if I find the same behavior. Were you running this on a Raspberry Pi? Which mod of 7-segment display were you using? Was it the .56" height? |
I went ahead and loaded the code on a Pi4 using a .56" 7-seg display and was able to reproduce the same issue you are seeing. Based on the way the library has been re-written it makes more sense to use the set_digit_raw() as you have done. Which guide did you find this code in? I'll go ahead and modify the dash usage. |
I found another error: When i try to display a float type number, the part after the colon gets cut off
result: Fix:
result: |
Thank you for your assistance with both issues. I've modified the example code sevensegment_test/code.py to not stumble over the '-' and to cast the floating point numbers to strings. I've submitted a PR to the github repo so the replacement code should be up in the next day. |
Hi!
I started working with the 7 segment display.
I downloaded the tutorial code, and tried to display a "-" symbol.
But it turned out like this:
(the other cables are for a temperature sensor and a fan)
https://imgur.com/jLiU4ut
The code:
I fixed it with set_digit_raw and it seems like it uses a different binary code than the one specified in the program.
The working code (still the same tutorial code edit):
The text was updated successfully, but these errors were encountered: