I just got the Portenta H7 and the DFR0669 display from DFRobot (uses ILI9488 driver chip). I want to use the TFT_eSPI library to control it so I can use some GUIs that I created on SquareLine Studio. Unfortunately, I have had absolutely no luck getting this to work. I'm pretty sure I've set it up correctly. The User_Setup.h file (attached) should have the correct ports and settings applied, and I've tried uploading some example sketches to verify it works. The IDE cant even complete the compilation as it give a lot of different errors such as ltoa not being declared in this scope and so on. The error log is quite long so I've uploaded a txt file of it instead of pasting it here. Attached is also the User_Setup.h file with the changes made to work with the H7's STM32 processor. One of the example files I used is shown below, although every one of them displayed the same errors.
/*
Ellipse drawing example
This sketch does not use any fonts.
*/
#include <SPI.h>
#include <TFT_eSPI.h> // Hardware-specific library
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library
void setup(void) {
tft.init();
tft.setRotation(1);
}
void loop() {
tft.fillScreen(TFT_BLACK);
// Draw some random circles
for (int i = 0; i < 40; i++)
{
int rx = random(60);
int ry = random(60);
int x = rx + random(480 - rx - rx);
int y = ry + random(320 - ry - ry);
tft.fillEllipse(x, y, rx, ry, random(0xFFFF));
}
delay(2000);
tft.fillScreen(TFT_BLACK);
for (int i = 0; i < 40; i++)
{
int rx = random(60);
int ry = random(60);
int x = rx + random(480 - rx - rx);
int y = ry + random(320 - ry - ry);
tft.drawEllipse(x, y, rx, ry, random(0xFFFF));
}
delay(2000);
}
Is there something I'm missing here, or is TFT_eSPI not compatible with the H7 and/or DFR0669 display? If that's the case, is there an arduino library that works with Squareline Studio Arduino output files?
TFT_eSPI issue.txt (64.3 KB)
User_Setup.h (18.0 KB)