While I’m working with SF tech support to figure out why my ESP32 Thing Plus isn’t working, I figured I’d go ahead with my project using my ESP32 Thing board. I’ve hit a few snags. I’m using the Arduino development environment. I successfully ran the blink program to confirm the basic setup is correct. I’ve got the display working, and I thought I’d comment here to help others. with some guidance, I’ll repeat these comments elsewhere…just tell me where to post them.
i was able to run Examples 1,2,&3, as well as example 5 on the ESP32 Thing Dev Board.
First off, when using the ESP32 Thing instead of the Thing Plus, the SPI pinouts are different. For the ESP32 Thing, the default pinouts are as follows:
MOSI 23
MISO 19
SCLK 18
SS 5 (LCDCS)
In addition, you need to take note of the D/C pin definition. For the ESP32 Thing Plus, it’s listed as pin 15; however, in the example code, it is pin 6. I changed it in code to pin 15 for the ESP32 Thing.
First, the programs would not compile: font5x7.h would not compile without changing
#include <avr/pgmspace.h>
to
#include <pgmspace.h>
Next compilation error was in HyperDisplay_KWH018ST01_4WSPI.cpp, which calls
analogWrite(_bl, b);
```, which throws the following error:
<QUOTE>
> /Arduino/libraries/SparkFun_HyperDisplay_KWH018ST01_4WSPI_Library/src/HyperDisplay_KWH018ST01_4WSPI.cpp:207:20: error: 'analogWrite' was not declared in this scope
>
> analogWrite(_bl, b);
</QUOTE>
For now, I've simply commented out the line, since it does not appear to be required for the Display test. Alternately, you can add this line:```
#define analogWrite ledcWrite
``` to the top of the above-named header file.