Added support for ILI9225

Added support for ILI9225 display controller. Currently no support for hardware rotation is implemented and only the default portrait resolution 176x220 is supported.
This commit is contained in:
Keagan Ladds 2022-01-17 20:17:19 +01:00
parent 26fe6e7703
commit 07ad6bf43e
8 changed files with 324 additions and 0 deletions

View file

@ -154,7 +154,11 @@ bool lvgl_spi_driver_init(int host,
int dma_channel,
int quadwp_pin, int quadhd_pin)
{
#ifdef SPI_HOST_MAX
assert((0 <= host) && (SPI_HOST_MAX > host));
#else
assert(0 <= host);
#endif
const char *spi_names[] = {
"SPI1_HOST", "SPI2_HOST", "SPI3_HOST"
};