Closed Cyberdemon-23 closed 2 years ago
Hmm.. I just clean compiled with
#define ESP32_Variant 7 // ESP32 Dev Module with ILI9341 2.8" colour TFT SPI 240x320
Could you try with my config.h, and then compare with yours?
https://drive.google.com/file/d/12Qgt1DqaaUvSx4ZDKbQR8JpJOxqkhh_P/view?usp=sharing
It would be best if you could use the latest source, so we are on the same page.
Downloaded the latest source, your config file - is the same error. Where is HUD_ARROW_OFFSET written? Maybe the wrong library is being used?
I see I added that code in V2.18.0. I can check it out a little later.
When I checked it this morning, it did not compile, my apologies. (told myself to go sit in the corner)
It's fixed in V2.19.05.
is actually compiling now, but the screen is not displaying anything. See if everything is properly connected
Hmm. I see you have marked the LED pin with 5v, so you know that both Vcc and LED must be powered.
Could you try these pins:
#define ILI9341_Display // ILI9341 2.8" COLOUR TFT SPI 240x320 V1.2
#define SCLK 18 // blue wire on my test setup
#define MOSI 23 // yellow wire
#define CS 25 // white wire
#define DC 22 // green wire
#define RST 21 // brown wire
I just tested it with the original pins, and that also works:
#define ILI9341_Display // ILI9341 2.8" COLOUR TFT SPI 240x320 V1.2
#define SCLK 18 // blue wire on my test setup
#define MOSI 23 // yellow wire
#define CS 25 // white wire
#define DC 26 // green wire
#define RST 27 // brown wire
// LED=3.3V, Vcc=5v, Gnd
// MISO not used by Adafruit
Could you double check your wiring?
If you could post the serial monitor log it might be helpful to see if there are any startup anomalies.
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
E (147) psram: PSRAM ID read error: 0xffffffff
Starting AntTrack version:2.19.05
Display support activated: Landscape
240x320 text_size=2 char_w_px=12 char_h_px=16 scr_h_ch=15 scr_w_ch=26
Target Board is Target Board = 3 ESP32 / Variant is Dev Module with ILI9341 2.8in COLOUR TFT SPI
Serial Telemetry In
Selected protocol is Mavlink 1
headingSource = 2 FC Compass
Servo slowdown factor is 10ms per degree of rotation
Testing Servos
"E (147) psram: PSRAM ID read error: 0xffffffff"
This looks a bit suspect. I googled it and got this:
"One of my ESP32-Cam boards has this issue too. Is the most likely explanation hardware failure of the PSRAM chip?"
EDIT: removed unrelated comment
My bootup looks like this:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:10944 load:0x40080400,len:6388 entry 0x400806b4
Starting AntTrack version:2.19.05 Display support activated: Landscape 240x320 text_size=2 char_w_px=12 char_h_px=16 scr_h_ch=15 scr_w_ch=26 Target Board is Target Board = 3 ESP32 / Variant is Dev Module with ILI9341 2.8in COLOUR TFT SPI Serial Telemetry In Selected protocol is Mavlink 1 headingSource = 2 FC Compass Servo slowdown factor is 10ms per degree of rotation Testing Servos
Uploaded to another board - this error disappeared, but the screen remained white.
I change
Adafruit_ILI9341 display = Adafruit_ILI9341 (CS, DC, RST); // LED = 3.3V, Vcc = 5v, Gnd
on the
Adafruit_ILI9341 display = Adafruit_ILI9341 (CS, DC, MOSI, SCLK, RST);
now everything works!
I'm guessing that I'm one version behind of the Adafruit ILI9341 library.
I updated to 1.5.10, but observing the two versions of the object,
Adafruit_ILI9341 display = Adafruit_ILI9341(CS, DC, RST);
is far faster. Refresh of the display is very fast, but with
Adafruit_ILI9341 display = Adafruit_ILI9341 (CS, DC, MOSI, SCLK, RST);
refresh is slow. Too slow to refresh to HUD fast enough. I think maybe this version renders the display in main RAM (on the stack), and it is slower. Guessing here.
First is hardware SPI, and the second is software SPI
the problem was in the wires, they were of poor quality. Now it works with
Adafruit_ILI9341 display = Adafruit_ILI9341 (CS, DC, RST);
Thank you very much!
Cool! My pleasure CyberD.
S E L E C T E S P B O A R D V A R I A N T ===================
define ESP32_Variant 7
Utilities:1440:11: error: 'HUD_ARROW_OFFSET' was not declared in this scope