0

esp32 feather fails with SPI TFT featherwing
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

esp32 feather fails with SPI TFT featherwing

by klankschap on Fri Feb 15, 2019 1:00 pm

The default examples of the TFT featherwing fail to compile with the ESP32 feather wing.

/Arduino/libraries/Adafruit_HX8357_Library/Adafruit_HX8357.cpp:112:25: error: '_spi' was not declared in this scope
#define SPI_OBJECT _spi ///< Default SPI hardware peripheral
^
...

Using library SPI at version 1.0 in folder: /Arduino/hardware/espressif/esp32/libraries/SPI
Using library Adafruit_GFX_Library at version 1.3.6 in folder: /Arduino/libraries/Adafruit_GFX_Library
Using library Adafruit_HX8357_Library at version 1.0.7 in folder: /Arduino/libraries/Adafruit_HX8357_Library
exit status 1
Error compiling for board Adafruit ESP32 Feather.


Howto proceed ?

klankschap
 
Posts: 21
Joined: Sun Sep 09, 2012 6:50 am

Re: esp32 feather fails with SPI TFT featherwing

by adafruit_support_carter on Fri Feb 15, 2019 7:30 pm

It looks like that library has some updates that have not been released yet. I got it to compile by going in to the existing release version and editing this line:
Code: Select all | TOGGLE FULL SIZE
 #define SPI_OBJECT _spi ///< Default SPI hardware peripheral

to this:
Code: Select all | TOGGLE FULL SIZE
 #define SPI_OBJECT SPI ///< Default SPI hardware peripheral


You should be able to find that file in {YOUR SKETCH FOLDER}/libraries/Adafruit_HX8357_Library/Adafruit_HX8357.cpp

adafruit_support_carter
 
Posts: 12726
Joined: Tue Nov 29, 2016 2:45 pm

Re: esp32 feather fails with SPI TFT featherwing

by adafruit2 on Sat Feb 16, 2019 3:46 pm

Try v1.1.0 just released

adafruit2
Site Admin
 
Posts: 18591
Joined: Fri Mar 11, 2005 7:36 pm

Re: esp32 feather fails with SPI TFT featherwing

by klankschap on Sat Feb 16, 2019 3:52 pm

the code correction _spi into SPI made it work.
Thanks!

klankschap
 
Posts: 21
Joined: Sun Sep 09, 2012 6:50 am

Please be positive and constructive with your questions and comments.