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

Allowing -1 as a value for CONFIG_TFT_CS. #3309

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

Conversation

hummusawy
Copy link

Context

When the library get configured using the idf.py menuconfig tool(the TFT_eSPI lib used as an ESP-IDF component), the CONFIG_TFT_CS config is used for setting the CS pin. However a check exists in the TFT_config.h file that raises an error if the value of CONFIG_TFT_CS is -1, this check should be removed since -1 as a value is allowed by the library itself[1, 2] to allow disabling the automatic control of the CS pin which is needed in some cases like controlling more than one screen.

Context:
When the library get configured using the `idf.py menuconfig` tool(the
lib used as an ESP-IDF component), the CONFIG_TFT_CS config used for
selecting the pin used as the TFT_CS pin. However a check exists in the
`TFT_config.h` that raises an error if the value of CONFIG_TFT_CS is -1,
this check should be removed since -1 is needed as an value to allow manual
control for the CS pin (manual control for the CS pins is needed for
controlling more than one screen).
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.

None yet

1 participant