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

Expose character mapping internals and add invert #346

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

Conversation

wryun
Copy link
Contributor

@wryun wryun commented Jan 1, 2024

Allowing the faces to access the internal segment mapping code makes it easier to have custom characters and have fancy effects.

This is the refactoring which was originally done for #102 with a few tweaks to keep it up to date.

This also adds the ability to invert the display (bonus) and reduces some minor code duplication (for the _lp display function).

Copy link
Collaborator

@matheusmoreira matheusmoreira left a comment

Choose a reason for hiding this comment

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

Exposing the character segmap data is an excellent improvement which makes for more readable implementation!

I think the code for inverting the display belongs on a separate pull request so it can be evaluated independently from the aforementioned change. Notably, none of the watch faces updated by the commit make use of this new display inversion functionality.

@wryun
Copy link
Contributor Author

wryun commented Jul 20, 2024

Heh, indeed it would make sense to split the invert. But the whole reason this code exists was to support the 'invert' (see linked PR), and I really wanted to sneak it in so I have less to update. I feel like the chances of getting the invert merged on its own are low!

It someone indicates they'd actually accept this if I removed the invert I'll do it. But I'd love to have the whole thing merged :)

@wryun wryun force-pushed the expose-character-mapping-internals-and-add-invert branch 2 times, most recently from e9d9800 to ea4d5d0 Compare July 20, 2024 22:50
Allowing the faces to access the internal segment mapping code makes
it easier to have custom characters and have fancy effects.
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.

2 participants