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

Makerfab TFT7" settings.toml parameter to set screen variant #9634

Merged
merged 6 commits into from
Sep 18, 2024

Conversation

RetiredWizard
Copy link

After using settings.toml to deal with the Sunton display board variants I thought the same technique might be used to deal with the Makerfabs MaTouch TFT 7" board which comes in two different screen resolutions (800x480 & 1024x600). Currently we were not initializing the display in board.c because of the variants so instead, the display needed to be initialized using python code.

This update will default to initializing the board at 800x480 (which results in a partially readable display on the 1024x600 variant) but use the 1024x600 settings if the new CIRCUITPY_DISPLAY_WIDTH settings.toml parameter is set to 1024. If an invalid value is entered the display will be initialized using the 800x480 parameters.

I've tested this on the 1024x600 display variant but don't have the 800x480 version.

@RetiredWizard RetiredWizard changed the title Tft7width Makerfab TFT7" settings.toml parameter to set screen variant Sep 16, 2024
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks! One question before merging.

ports/espressif/boards/makerfabs_tft7/board.c Outdated Show resolved Hide resolved
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit 96c9106 into adafruit:main Sep 18, 2024
15 checks passed
@RetiredWizard RetiredWizard deleted the tft7width branch September 20, 2024 19:50
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