SPX-16426 Python Library

Does any have suggestions for controlling the SPX-16426 Alphanumeric Display via Python? I am currently attempting to control them via a Raspberry Pi & a Qwiic HAT for Raspberry Pi.

I am able to turn all the segments on, turn them all off, and dim the display using a few different libraries I found, however when sending “0b111111” (looking at the arduino library this is what is expected to be “0”) , the top segments on all 4 digits light up, as well as the middle right segment on the first two displays.

This leads me to believe that there is an issue between the libraries I’ve found and what the SPX-16426 is expecting.

By sending single characters to the SPX-16426 I’m able to confirm that theory: The right number of segments are lighting up, they’re just in the wrong place.

I feel like I am missing something simple here: Like needing to carry a 1 or multiply by 2 somewhere.

I was hoping that this would be an easy project - however I did overlook the fact that there was not an existing Python library! Which is entirely my bad - any support would be appreciated, however I understand if that’s not possible.

s

My guess is that your libraries are mapping the segments differently than spark fun has them setup in hardware. What you’re probably going to need to do is figure out what bits light up which segments and then modify your library so that the two match up. Once you’ve done that, you should be ready to rock and roll. :sunglasses:

YellowDog:
My guess is that your libraries are mapping the segments differently than spark fun has them setup in hardware

Yep - figured that much out. However the mapping is not consistent digit to digit.

When sending “0b111111” (looking at the Arduino library this is what is expected to be “0”) , the top segments on all 4 digits light up, as well as the middle right segment on the first two displays.

Now if that were to light up multiple segments on the first digit I think I would be able to figure out how to remap things. But since it’s across all 4 digits I am stuck.

FWIW - check out

https://github.com/thess/qwiic_alphanumeric_py

tedhessjr:
FWIW - check out

https://github.com/thess/qwiic_alphanumeric_py

Not sure how I kept missing that in my searches, but thank you very much! :smiley: