Skip to content
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

fix: remove line breaking mypinballs segment displays #1880

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

unRARed
Copy link
Contributor

@unRARed unRARed commented Feb 19, 2025

This might be another naive PR from our side, but we have been trying to get our "mypinballs" segment displays going and have been running into a strange issue. The displays were initializing as expected, but any value we entered only ever displayed " 0" and was the case for all 4 displays we're running. I reached out to the guy who wrote the MyPinballs firmware and he provided instructions for the formats the displays expect which is as such:

Control Code : Display ID : Integer Value to Display

So to display a score of 500 on the 2nd display, the value is 1:2:500. We were able to confirm our displays are working by simply connecting from the terminal as such: echo "1:1:1234567\n" > /dev/ttyACM1.

With this confirmed, we looked at the MyPinballs mpf source and noticed this curious piece:

# special char for spaces
text = text.replace(" ", "?")

As a hunch, I removed the line... and instantly our attract values displayed. Further, starting a game reinitialized the displays and switch hits were scoring. I'm wondering if there are perhaps different versions of the MyPinballs segment display controller or maybe other updates downstream broke the existing implementation? Anyone else running these displays that could test against the 0.57.x branch and report back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant