Skip to content

Add a variable to allow shifting the column address an arbitrary amount #4

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

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

U47
Copy link
Contributor

@U47 U47 commented Mar 11, 2022

Found this lurking as a const in the old C library as (ST7565_STARTBYTES), and although the value presented there wasn't working for my display, I was able to get my display working correctly with a different value. Decided to make it an instance variable so it can be adjusted as needed (alongside the pagemap list, which I also needed to adjust for my display).

@tekktrik
Copy link
Member

Looks like black keeps getting angry, you can further repent to the linter using pre-commit :) Here's some instructions on getting started, should help you get that sorted out!

https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/check-your-code

@U47
Copy link
Contributor Author

U47 commented Mar 11, 2022

Looks like black keeps getting angry, you can further repent to the linter using pre-commit :) Here's some instructions on getting started, should help you get that sorted out!

I appreciate the help. I was trying to get away with editing directly inside GitHub since it's such a minor thing, but I've angered the testing gods. I'm still new to Adafruit's way of doing things!

I'll clone it correctly and run the hooks properly before pushing again. Thanks for that link to the info I need.

…trary amount

Found this lurking as a const in the [old C library][1] as (`ST7565_STARTBYTES`), and although the value presented there wasn't working for my display, I was able to get my display working correctly with a different value. Decided to make it an instance variable so it can be adjusted as needed (alongside the pagemap list, which I also needed to adjust for my display).

[1]: https://github.com/adafruit/ST7565-LCD/blob/d40d9d832be8a6ce26d6462e85de3dcf439942fc/ST7565/ST7565.cpp#L593
@tekktrik tekktrik requested a review from a team March 17, 2022 02:02
@U47 U47 marked this pull request as ready for review March 17, 2022 02:03
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

This change looks good to me. Prior behavior should remain as the default, but can now be more easily adjusted if user has a display that works differently.

I don't have hardware to test, and it looks like the adafruit product for this driver is no longer available. Based on the code change I believe existing behavior should not be affected.

@FoamyGuy FoamyGuy merged commit fedc6eb into adafruit:main Mar 20, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 21, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS to 4.4.2 from 4.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#55 from jerryneedell/jerryn_temperature
  > Merge pull request adafruit/Adafruit_CircuitPython_LSM6DS#53 from infamy/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_ST7565 to 1.1.0 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_ST7565#4 from U47/patch
  > Fixed readthedocs build
  > Consolidate Documentation sections of README

Updating https://github.com/adafruit/Adafruit_CircuitPython_ST7789 to 1.5.7 from 1.5.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_ST7789#31 from makermelissa/master
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