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

Ssd130x offset support #633

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Ssd130x offset support #633

merged 2 commits into from
Dec 6, 2023

Conversation

ohmtech-rdi
Copy link
Owner

@ohmtech-rdi ohmtech-rdi commented Dec 6, 2023

This PR adds support for OLED modules using SSD1306 or SSD1309 (which natively drives 128x64 pixels), but for which the actual pixels is only a portion of the full accessible pixels. This is done by introducing an X-offset and page offset.
The X-offset implementation could probably be done better (as it might be directly supported by the controller), but this solution is good enough for now.

@ohmtech-rdi ohmtech-rdi added the flaw Something isn't working properly but is not a bug label Dec 6, 2023
@ohmtech-rdi ohmtech-rdi self-assigned this Dec 6, 2023
@ohmtech-rdi ohmtech-rdi force-pushed the ssd130x-offset-support branch from 202cf3c to 55abfb1 Compare December 6, 2023 16:59
@ohmtech-rdi ohmtech-rdi merged commit ad31541 into main Dec 6, 2023
20 checks passed
@ohmtech-rdi ohmtech-rdi deleted the ssd130x-offset-support branch December 6, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaw Something isn't working properly but is not a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant