At least with the latest SDK (2.2.0 ) a tiny modification is needed to make the examples compile:
In all main.c files replace:
.spi = PICO_DEFAULT_SPI_INSTANCE,
with
.spi = PICO_DEFAULT_SPI_INSTANCE(),
Also, to avoid compiler complaints, add:
#include "pico/time.h"
to st7789.c
At least with the latest SDK (2.2.0 ) a tiny modification is needed to make the examples compile:
In all main.c files replace:
.spi = PICO_DEFAULT_SPI_INSTANCE,with
.spi = PICO_DEFAULT_SPI_INSTANCE(),Also, to avoid compiler complaints, add:
#include "pico/time.h"to st7789.c