-
-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
OLED driver function to set pixels #9713
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fauxpark
reviewed
Jul 12, 2020
fauxpark
requested changes
Jul 12, 2020
Co-authored-by: Ryan <[email protected]>
fauxpark
approved these changes
Jul 13, 2020
tzarc
approved these changes
Jul 16, 2020
Awesome, thank you! |
drashna
pushed a commit
to zsa/qmk_firmware
that referenced
this pull request
Aug 9, 2020
* Add a function to set individual pixels * Add documentation for oled_write_pixel * use smaller data type for oled_write_pixel * Fix boundary check edge case * Update oled_write_pixel doc Co-authored-by: Ryan <[email protected]> Co-authored-by: Ryan <[email protected]>
BorisTestov
pushed a commit
to BorisTestov/qmk_firmware
that referenced
this pull request
May 23, 2024
* Add a function to set individual pixels * Add documentation for oled_write_pixel * use smaller data type for oled_write_pixel * Fix boundary check edge case * Update oled_write_pixel doc Co-authored-by: Ryan <[email protected]> Co-authored-by: Ryan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a function to set individual pixels to oled driver.
Description
Add a function to turn an individual pixel on or off, based on x and y coordinates. Coordinates start from top-left and positive values of x and y move right and down respectively.
Allows for things like a starfield (example code), or bitmap rendering at exact pixel positions (example code).
The bitmap rendering example code has an implementation for
oled_write_bitmap(bitmap, x, y, width, height, erase_flag)
(here) and it works great, but I am not sure if it's performant or worthy enough for a PR. I am able to push 60 fps on the DVD logo without noticeable lag on pro micros (granted my max WPM is only around 50).Types of Changes
Issues Fixed or Closed by This PR
None
Checklist