adafruit / Adafruit_STMPE610

Arduino library for STMPE610/811 resistive touch screen controllers
MIT License
38 stars 32 forks source link

STMPE610 problem #11

Closed yk9 closed 6 years ago

yk9 commented 6 years ago

im using IAR project , based ili9341 gfx and i added the SMPTE610, but i cant get the chip to response. i want the basic test of getting the ID (send 0x00 response 0x0811)or VER(0x02 response 0x01), but no luck. did any one had this problem?

scope_4

ladyada commented 6 years ago

we've never used IAR but check you're trying both MODE1 and MODE0, stmpe can come up in either mode depending on pin states (check datasheet for exact, its been many years since we wrote the code :)

yk9 commented 6 years ago

ok , i can read it registers im writing to , also ID and VER but no values from XY registers. i followed to example initialization, also the touch detection bit is not changing. any ideas?

image trying to read the 8th bit from TSC_CTRL , but its always low