adafruit / Adafruit_CircuitPython_STMPE610

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

Add SPI mode switch if init fails #4

Closed jerryneedell closed 6 years ago

jerryneedell commented 6 years ago

If the version test fails after SPI is initialized, try switching to SPI Mode 1 - Change phase to 1. This what Arduino does to handle the way the device starts up.

Also set default Baud rate to 1Mhz - was 100KHz. That as too low for nrf52 -- not sure why it was set so ow by for default. Arduino uses 1MHz as well

hopefully fixes #3

jerryneedell commented 6 years ago

I tested this on a feather M4 express, feather m0_express and feather52832