Skip to content

SPI mode sometimes wrong - CHIP ID check fails #3

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

Closed
jerryneedell opened this issue May 17, 2018 · 0 comments · Fixed by #4
Closed

SPI mode sometimes wrong - CHIP ID check fails #3

jerryneedell opened this issue May 17, 2018 · 0 comments · Fixed by #4

Comments

@jerryneedell
Copy link
Contributor

There is a known issue with the way the STMPE610 is initialized for SPI. Occasionally, it syncs to the wrong clock edge (SPI Mode 1 instead of SPI Mode 0). The Arduino version detects and corrects for this by switching the SPI Mode. https://github.com/adafruit/Adafruit_STMPE610/blob/master/Adafruit_STMPE610.cpp#L103

This driver has not yet implemented this and it results in a failure to detect the CHIP ID correctly. Usually retrying the initialization or power cycling the board gets it come up in the right state.

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 a pull request may close this issue.

1 participant