-
Hi, To get even here I had to add a line Arduino_DataBus bus = new Arduino_ESP32SPI(TFT_DC,TFT_CS, 18 / SCK /, 23 / MOSI /,-1 / MISO /, VSPI / spi_num */); Build fails with the error above. I checked what was being built in C:\Users<user>\AppData\Local\Temp\arduino_build_111497 and all seems fine. all of your library is being build and .o files were generated and were part of the link command. I tried switching to 1.1.4 version of your library but it made no difference. any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Resolved it. Switched to Platform IO and that allowed me to investigate more effectively. #define CONFIG_IDF_TARGET_ESP32 true #define TFT_CS 5 #include <Arduino_GFX_Library.h> /* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */ /* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */ /* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */ // ILI9486 LCD 320x480 #endif /* !defined(DISPLAY_DEV_KIT) */ |
Beta Was this translation helpful? Give feedback.
Resolved it. Switched to Platform IO and that allowed me to investigate more effectively.
Basically I needed to follow guide more closely. This worked for me:
#define CONFIG_IDF_TARGET_ESP32 true
#define TFT_CS 5
#define TFT_DC 27
#define TFT_RST 33
#define TFT_BL 22
#include <Arduino_GFX_Library.h>
/* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */
#if defined(DISPLAY_DEV_KIT)
Arduino_GFX gfx = create_default_Arduino_GFX();
#else / !defined(DISPLAY_DEV_KIT) */
/* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */
Arduino_DataBus *bus = create_default_Arduino_DataBus();
/* More display class: …