adafruit / Adafruit_CircuitPython_STMPE610

Adafruit CircuitPython driver for the STMPE610 resistive touchscreen controller
MIT License
1 stars 10 forks source link

Should I2C support be removed #23

Open jerryneedell opened 2 years ago

jerryneedell commented 2 years ago

Does anyone use the I2C mode? It is available on the now discontinued and unavailable breakout board but it is not used on any of the tft displays that have the stpme chips built in. They all use SPI.

In addition, the I2C implementation can be flaky and I wonder if it is worthwhile troubleshooting it.

When using the stmpe610 breakout in I2C mode, there are occasional errors

>>> import stmpe610_simpletest_i2c
Go Ahead - Touch the Screen - Make My Day!
(1266, 2298, 130)
(1247, 2296, 18)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "stmpe610_simpletest_i2c.py", line 14, in <module>
  File "adafruit_stmpe610.py", line 213, in buffer_empty
  File "adafruit_stmpe610.py", line 164, in _read_byte
  File "adafruit_stmpe610.py", line 246, in _read_register
OSError: [Errno 5] Input/output error
>>> 

This was on a GrandCentral M4 running the simpletest in I2C mode. I have also seen "Error 19 - Unsupported Operations) errors on a QTPY esp32s2

I don't think this is new. I think I saw this in the past but did not open an issue.