PaulStoffregen / ST7735_t3

Teensy 3.x Optimized Version of Adafruit_ST7735 (1.8 inch TFT Display)
33 stars 16 forks source link

ST7735: Do not call TCR code if no hwSPI #23

Open grahamwhaley opened 3 years ago

grahamwhaley commented 3 years ago

If using a pure SW (GPIO) SPI connection, a call to maybeUpdateTCR was still being made, which can hang up as we are not on a hw SPI bus.

Predicate the call with a check for hwSPI, as is done in other places already.

Fixes: #22

Signed-off-by: Graham Whaley graham.whaley@gmail.com