[09:11:10][W][component:237]: Component display took a long time for an operation (101 ms).
[09:11:10][W][component:238]: Components should block for at most 30 ms.
My config
I’ve been using these two pages to help with the config but I’ve hit a wall.
Definitely yes. Basic Wroom32 board would be easier to start with.
Anyway, nice board I have to say.
Read the waveshare wiki.
Start with the correct display pins:
Looking at the debug log it looks like the display is detected ok.
[09:15:54][C][ili9xxx:094]: ili9xxx
[09:15:54][C][ili9xxx:094]: Rotations: 0 °
[09:15:54][C][ili9xxx:094]: Dimensions: 172px x 320px
[09:15:54][C][ili9xxx:095]: Width Offset: 0
[09:15:54][C][ili9xxx:096]: Height Offset: 0
[09:15:54][C][ili9xxx:102]: Color mode: 16bit
[09:15:54][C][ili9xxx:111]: Data rate: 40MHz
...
Put the logger into VERBOSE mode and boot up again. Then do the same with VERY_VERBOSE mode. Very verbose should post the commands to the display and will be very long; we only need ~15 seconds of that one. Upload both.
I got a little further using the correct GPIO numbers as @Karosm pointed out above.
I was able to see the shape on the screen but it was very intermittent and the same error appeared in the logs as before.
I wonder if the SPI and display are negotiating the correct speed? I had an issue not unlike this last week and it was resolved by configuring the speed on I2C…
The ST7789V component has these parameters you could try and change:
data_rate (Optional, frequency): The SPI data rate (default 20MHz.) Can be reduced if required, e.g. to compensate for long data cables.
spi_mode (Optional, 0-3): The SPI clock mode to use (default: mode0.) The ST7789V datasheet specifies mode 0, but some displays appear to require mode 3. This should be one of mode0, mode1, mode2 or mode3 (or just a digit from 0-3.)