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

Add segment name definitions for alphanumeric displays #76

Merged
merged 5 commits into from
Nov 12, 2023
Merged

Add segment name definitions for alphanumeric displays #76

merged 5 commits into from
Nov 12, 2023

Conversation

jonnybergdahl
Copy link

I added segment name defines to make it easier for the user to use the alphanumeric display. I also added a simple animation that shows how to use the defines.

It makes it possible to write code like this - alpha4.writeDigitRaw(0, ALPHANUM_SEG_C);, which is way more readanle than alpha4.writeDigitRaw(0, 0c0004);.

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know where these segment names came from, in the .h file. It was only when I read the .ino example that I saw the link to the diagram. Could you add a comment to the .h file too?

... For segment names, 
// see https://learn.adafruit.com/14-segment-alpha-numeric-led-featherwing/usage

@dhalbert
Copy link
Contributor

If you can do a diagram in ASCII in a comment, that would be even better.

@jonnybergdahl
Copy link
Author

Good idea! Done.

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, and doesn't change the actual running code anyway, so it's an easy safe change.

@dhalbert dhalbert merged commit 74cf652 into adafruit:master Nov 12, 2023
1 check passed
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.

3 participants