It is only a problem with my new M4s, I was able to initialize and use the STMPE610 module with my M0 adalogger.Traceback (most recent call last):
File "main.py", line 8, in <module>
File "adafruit_stmpe610.py", line 287, in __init__
File "adafruit_stmpe610.py", line 142, in __init__
RuntimeError: Failed to find STMPE610! Chip Version 0x8081
Since I have enough RAM on the M4 I've tried using the .py code off of GitHub instead of the .mpy from the library bundle. uncommenting the print statement in the _read_register function with the working M0 adalogger outputs:
When I do the same thing with both M4s it outputs:main.py output:
$80 => ['0x8']
$81 => ['0x11']
Go Ahead - Touch the Screen - Make My Day!
I'm not sure, but I would think it returns the same version number, but the M4 is reading it incorrectly.main.py output:
$80 => ['0x80']
$81 => ['0x81']
Traceback (most recent call last):
File "main.py", line 8, in <module>
File "/lib/my_stmpe610.py", line 285, in __init__
File "/lib/my_stmpe610.py", line 140, in __init__
RuntimeError: Failed to find STMPE610! Chip Version 0x8081
I was able to use the M4 board to talk to the TFTs ILI934 chip using SPI, but not the STMPE610.