Commit graph

290 commits

Author SHA1 Message Date
C47D 9b4eedd00f disp_driver: Pass pointer to lv_disp_drv_t to pcd8544_init 2022-01-11 18:17:09 -06:00
C47D 6418f805bb display_config: Add missing defined 2022-01-11 18:15:22 -06:00
C47D 11f9c2b93f pcd8544: Update driver 2022-01-11 18:14:57 -06:00
C47D 6af2ab1f1c EVE_commands: Remove unused code 2022-01-07 18:30:56 -06:00
C47D 62704efd08 Remove semicolon from preprocessor 2022-01-07 17:38:08 -06:00
C47D ff055b629e ili9488: Fix typo 2022-01-07 17:27:12 -06:00
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
C47D bb0e3a1f27 Check for LV_USE_LOG when logging orientation 2022-01-07 15:26:39 -06:00
C47D dcff9a7f11 ili9481: Add missing braces 2022-01-07 15:26:39 -06:00
C47D f669a09b19 jd79653a: Remove unused code 2022-01-07 15:26:39 -06:00
C47D d0376e705c uc8151d: Remove unused code 2022-01-07 15:26:39 -06:00
C47D 35d2d3a5af Add LV_DISP_USE_BUSY symbol to enable busy signal 2022-01-07 13:23:28 -06:00
C47D 9ee177b684 ST7789: Display offsets are now runtime configurable
We don't change previous functionality by adding a helper function that sets the user offsets when initializing the display
2022-01-07 13:23:28 -06:00
Carlos Diaz 31399e012a Make SPI3 not available for ESP32C3
The ESP32C3 device doesn't have SPI3
2022-01-06 18:53:34 -06:00
Carlos Diaz 79d8989b2a Update display Kconfig
Remove IDF_TARGET_ESP32S2 checks on TFT SPI Bus choice
2022-01-06 18:53:34 -06:00
C47D 1a8a610b05 Display Kconfig: Fix TTGO default SPI bus and display orientation checks 2022-01-06 18:53:34 -06:00
arktrin 26272b08f0 clarify the 52/53 px offset oddity 2022-01-05 23:47:03 -06:00
arktrin fbb4ebe409 add offset for 240x135 displays based on ST7789 2022-01-05 23:46:35 -06:00
arktrin a2a13f1a5f replace hardcoded SPI DMA parameter 2022-01-05 23:46:10 -06:00
arktrin b9377200a6 fix SPI names for touch
with ESP32-C3 specific auto-dma proper selection
2022-01-05 23:45:54 -06:00
Carlos Diaz c78e9fe169
Migrate hello_world example to LVGL v8
Update example to LVGL v8.
2021-12-29 23:10:08 -06:00
Tomas Rezucha d0eca96cd7 fix SPI names 2021-12-16 13:40:00 +01:00
Tomas Rezucha 385421fe06
Merge branch 'master' into develop 2021-12-14 17:46:46 +01:00
Tomas Rezucha 4afc03a9fa
Merge pull request #145 from arktrin/fix-spi-conf
Fix SPI configuration for ESP32C3 and ESP32S2
2021-12-14 16:28:06 +01:00
arktrin 23ee5be93b replace all specific SPI names with SPIx_HOST 2021-12-13 14:31:09 +03:00
arktrin 31a5733c8d Fix SPI configuration for ESP32-C3 and ESP32-S2
ESP32-C3 and ESP32-S2 do not have VSPI or HSPI
2021-12-05 17:01:36 +03:00
Matthias Ringwald f3f6ba6470 Added PCD8544 to readme, addressed PR comments 2021-11-25 17:16:04 -06:00
Matthias Ringwald 37a4d3a4e6 Add PCD8544 driver 2021-11-25 17:16:04 -06:00
Carlos Diaz c7607e93d8
ili9488: Start updating to new display port interface (#137)
ILI9488: Start updating to new display port interface
2021-11-17 21:00:07 -06:00
Rashed Talukder 2dad083264 Extern the queue handle and add definition in source file. Add macro condition for dependencies. 2021-10-27 19:12:09 -05:00
Rashed Talukder ac6cde35c9 Add kconfig symbol for optional coordinates queue 2021-10-27 19:10:31 -05:00
Rashed Talukder 919d644dc8 Add touch input values to a FreeRTOS queue 2021-10-27 19:07:41 -05:00
Carlos Diaz b674d2d4f1
Merge pull request #136 from rashedtalukder/master
Add touch input values to an accessible FreeRTOS queue
2021-10-27 18:57:13 -05:00
Rashed Talukder 37548ad50f Extern the queue handle and add definition in source file. Add macro condition for dependencies. 2021-10-27 09:20:57 -07:00
Rashed Talukder a56b80b362 Add kconfig symbol for optional coordinates queue 2021-10-25 11:53:26 -07:00
Rop Gonggrijp 3625deb36d Addresses confusion: I2C manager component install only when others need I2C too.
See #115
2021-10-22 18:57:08 -05:00
Rop Gonggrijp 86e3f259ba Fixes potential ESP-IDF config editor crash (#115) 2021-10-22 18:56:59 -05:00
Carlos Diaz ec944af90f
Merge pull request #131 from lvgl/fix/use_lvgl_logging
Replace ESP_LOG with LVGL logging
2021-10-22 18:51:15 -05:00
C47D ea37784f08 Remove TAG from LVGL log API in touch drivers
The filename is appended at the beginning of the log output by default, we don't need to do it.
2021-10-22 18:45:52 -05:00
C47D a0e915eebc Remove TAG from LVGL log API
The filename is appended at the beginning of the log output by default, we don't need to do it.
2021-10-22 18:41:47 -05:00
Rashed Talukder bd445ea30a Add touch input values to a FreeRTOS queue 2021-10-19 17:27:27 -07:00
Carlos Diaz 617e6a46c0
Merge pull request #132 from ropg/fix_115
Fixes for #115
2021-10-15 10:54:41 -05:00
Rop Gonggrijp db3d00e374 Addresses confusion: I2C manager component install only when others need I2C too.
See #115
2021-10-15 15:38:16 +02:00
Rop Gonggrijp 83eba9b04c Fixes potential ESP-IDF config editor crash (#115) 2021-10-15 15:37:36 +02:00
C47D 9c886307b2 xpt2046: Replace ESP_LOG with LVGL logging 2021-10-13 23:32:12 -05:00
C47D 1ededabf99 stmpe610: Replace ESP_LOG with LVGL logging 2021-10-13 23:30:45 -05:00
C47D 6b6b756da3 ra8875: Replace ESP_LOG with LVGL logging 2021-10-13 23:29:34 -05:00
C47D 18569b6c17 gt911: Replace ESP_LOG with LVGL logging 2021-10-13 23:28:50 -05:00
C47D 5d55edc37c ft6x36: Replace ESP_LOG with LVGL logging 2021-10-13 23:27:31 -05:00
C47D 4a9cfeb6fb EVE_commands: Replace ESP_LOG with LVGL logging 2021-10-13 23:23:56 -05:00