lvgl_esp32_drivers/lvgl_tft
Carlos Diaz 17eb416ef8
Update helpers and drivers to handle LVGLv7 and v8 versions (#161)
* [lvgl_helpers] Cleanup and misc code cleanup

Checks for SPI_HOST_MAX symbol before using it.

Rename lvgl_driver_init to lvgl_interface_init because it now only initialize
the interface bus for display drivers, we still need to remove the indev
drivers from here.

Use types defined in spi_types.h for spi host (spi_host_device_t) and
spi dma channels (spi_dma_chan_t).

Also add a couple of symbols to avoid using magic numbers

* [lvgl_helpers] Reduce usage of if defined in lvgl_interface_init

* [lvgl_helpers] Fix spi dma channel for ESP-IDF versions <= 4.2

* [examples] Update hello_world to call lvgl_interface_init

* Add lvgl_get_display_buffer_size helper

This helper will allow us to get the calculated display buffer size instead of using a global symbol.

* Implement lvgl_get_display_buffer_size

This API will be used to get the calculation of display buffer size.

* Delete DISP_BUF_SIZE symbols

The same functionality is handled by lvgl_get_display_buffer_size

* Move SPI max transfer size calculation to helper

Use calculate_spi_max_transfer_size to calculate the SPI max transfer size for the SPI master configuration

* Remove SPI_BUS_MAX_TRANSFER_SZ definition

Same functionality is now handled in calculate_spi_max_transfer_size

* Update display buffer size calculation

Use lvgl_get_display_buffer_size helper instead of DISP_BUF_SIZE symbol

* Update example to LVGL v8

Add comments about changes from:
- LVGL v7 to LVGL v8
- Configuration helpers and display drivers

* Update lvgl_helpers.c

* Update sh1107 driver

* Update EVE driver

Check for symbols used in previous implementations before trying to use them
and add a fallback temporary implementation when not found.

The falback implementation isn't tested with hardware.

Symbols:
- DISP_BUF_SIZE
- SPI_TRANSFER_SIZE

* Update uc8151d driver

* Update jd79653a driver

* Update ra8875 driver

* Update il3820.h

Check for LV_HOR_RES_MAX and LV_VER_RES_MAX before trying to use them

* Update lvgl_helpers.c

Check for ESP-IDF version before trying to use spi_dma_chan_t type
2022-01-07 17:22:11 -06:00
..
disp_driver.c Merge branch 'master' into develop 2021-12-14 17:46:46 +01:00
disp_driver.h Merge branch 'master' into develop 2021-12-14 17:46:46 +01:00
disp_spi.c Make it work with v7 and v8 2021-07-08 18:08:29 +02:00
disp_spi.h Move drivers from the lv_port_esp32 to here 2020-12-17 00:02:55 -06:00
display_port.h Replace display_port_busy_t with bool 2021-10-01 12:11:28 -05:00
esp_lcd_backlight.c Fix build on idf v4.1 and v4.2 2021-08-11 22:17:02 +02:00
esp_lcd_backlight.h Provide README section about backlight control 2021-08-04 09:38:05 +02:00
EVE.h Move drivers from the lv_port_esp32 to here 2020-12-17 00:02:55 -06:00
EVE_commands.c Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
EVE_commands.h Removed white space at EOL, added some EOLs at EOF 2021-04-28 11:15:00 +02:00
EVE_config.h Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
FT81x.c Removed white space at EOL, added some EOLs at EOF 2021-04-28 11:15:00 +02:00
FT81x.h Replace LV_CONF_INCLUDE_SIMPLE with LV_LVGL_H_INCLUDE_SIMPLE 2020-12-21 11:10:35 -06:00
GC9A01.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
GC9A01.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
hx8357.c Remove TAG from LVGL log API 2021-10-22 18:41:47 -05:00
hx8357.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
il3820.c Remove TAG from LVGL log API 2021-10-22 18:41:47 -05:00
il3820.h Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
ili9163c.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
ili9163c.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
ili9341.c Remove TAG from LVGL log API 2021-10-22 18:41:47 -05:00
ili9341.h ili9341: Update driver to use new port interface 2021-10-05 00:03:02 -05:00
ili9481.c ili9481: Add missing braces 2022-01-07 15:26:39 -06:00
ili9481.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
ili9486.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
ili9486.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
ili9488.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
ili9488.h ili9488: Start updating to new display port interface (#137) 2021-11-17 21:00:07 -06:00
jd79653a.c Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
jd79653a.h Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
Kconfig Add LV_DISP_USE_BUSY symbol to enable busy signal 2022-01-07 13:23:28 -06:00
pcd8544.c Added PCD8544 to readme, addressed PR comments 2021-11-25 17:16:04 -06:00
pcd8544.h Added PCD8544 to readme, addressed PR comments 2021-11-25 17:16:04 -06:00
ra8875.c Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
ra8875.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
sh1107.c Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
sh1107.h Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
ssd1306.c Remove TAG from LVGL log API 2021-10-22 18:41:47 -05:00
ssd1306.h Replace allLVGL driver I2C code with I2C Manager 2021-07-08 11:04:07 +02:00
st7735s.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
st7735s.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
st7789.c ST7789: Display offsets are now runtime configurable 2022-01-07 13:23:28 -06:00
st7789.h ST7789: Display offsets are now runtime configurable 2022-01-07 13:23:28 -06:00
st7796s.c Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
st7796s.h Update TFT drivers for new backligh control 2021-08-03 14:17:58 +02:00
uc8151d.c Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00
uc8151d.h Update helpers and drivers to handle LVGLv7 and v8 versions (#161) 2022-01-07 17:22:11 -06:00