adafruit / Adafruit-ST7735-Library

This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
https://learn.adafruit.com/1-8-tft-display
547 stars 303 forks source link

ESP32 Feather V2 doesn't have the default pin set but also doesn't define ARDUINO_FEATHER_ESP32 #172

Open hairybaboon opened 2 years ago

hairybaboon commented 2 years ago

https://github.com/adafruit/Adafruit-ST7735-Library/blob/c2b3a2c0970988b1c65e8fd0e14a23e96e95b662/examples/graphicstest/graphicstest.ino#L40

I have an ESP32 Feather V2. I have the pins 14,15,32 on my board, not the 10,9,8 that the default example uses. I had assumed the #define for ARDUINO_FEATHER_ESP32 would exist, but a print statement shows I was using the default 10,9,8 sequence. Is this #define too narrow for all ESP32 boards you make, or due to pin # problems do you have to specially cater each pin set per board? If the latter, it would be good for the tutorial here to tell us to not rely on the #defines for board type and just modify the default pins to the ones we choose.