Noob trying to get first UI working

What do you want to achieve?

Greetings, I am trying to get my first UI working using an ESP32 and 320x240 SPI display using the ILI9341 driver. if I use Adafruit_ST7789 library I can use Arduino IDE to get the display to work as expected so the wiring and config are correct. but when I try with the squareline project export the .ino compiles and uploads but the graphics are messed up.

What have you tried so far?

I have configured User_Setup.h correctly as far as I can tell.

#define ILI9341_DRIVER

#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 4 // Data Command control pin
#define TFT_RST 2 // Reset pin (could connect to RST pin)

#define SPI_FREQUENCY 40000000

Screenshot or video

Others

  • SquareLine Studio version: 1.41
  • Operating system: windows 11
  • Target hardware: ESP32 dev module with external 320x240 display

any help to figure it out would be appreciated.

What do you mean “Messed up” ?
Are the colors inverted? are the colors blown out as if it were too bright?

Can you please send a screenshot for us to check? It might be that the bit depth is set wrongly. If the display has 16 bit depth, try setting the bit depth in the “Project Settings” to “16 bit swap”.

Thank you, I solved it! and you are correct, I had 2 different values for the bit depth and was overriding the value set in the project. now it is correctly set to 16 and consistent.

1 Like