Skip to content

tft.getTouch is killing other spi devices #915

Answered by Bodmer
Jay-esp asked this question in Q&A - General
Discussion options

You must be logged in to vote

It will be the commenting out of SET_BUS_WRITE_MODE; that has fixed it. This line puts the bus into "write only" mode.

Since SET_BUS_READ_MODE; is called by begin_touch_read_write() it can safely be commented out. I will update the library.

It looks like the other libraries are not correctly configuring the SPI bus upon entry and so relies on the previous library leaving the bus in a compatible state. Not a good idea!

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Jay-esp
Comment options

@Jay-esp
Comment options

@Jay-esp
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Bodmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants