Commit graph

43 commits

Author SHA1 Message Date
Rashed Talukder 8d9f6e2548
Update to support ESP-IDF v5 in develop branch (#186)
* Update to support ESP-IDF v5 in develop branch

* Remove the need for rom includes while providing IDF v5 compatibility

* Fix missing '(' typo

* Remove unnecessarily addded rom header files

* Add missing version include

* Fix another forgotten ')'
2022-05-12 22:15:06 -05:00
Carlos Diaz 28d663f6b6
Moving ESP-IDF specific files to lv_port (#175)
* Move disp_spi.c and tp_spi.c to lv_port

* Move esp_lcd_backlight to lv_port

* Move disp_spi.h and tp_spi.h to lv_port
2022-02-02 16:51:28 -06:00
Carlos Diaz 463721e291
Cleanup lvgl_helpers (#171)
* lvgl_spi_conf: Define TFT_SPI_HOST even when no SPI is choosen

* lvgl_helpers: Let the SPI driver choose SPI DMA Channel

Use SPI_DMA_CH1 only on ESP32 target.

* lvgl_helpers: Move FT81X initialization to helper

* lvgl_interface_init: Initial cleanup

* lvgl_helpers: Replace spi_common_dma_t values with integers

This enum was introduced in ESP-IDF v4.3 and can't be used in older versions
of ESP-IDF.

* lvgl_helpers: Rearrange includes

* lvgl_tft: Remove gpio_pad_select_gpio from drivers init functions

* lvgl_helpers: Use spi_host_device_t from v4.3 onwards

* esp_backlight: Replace gpio with esp_rom API

* il3820: Remove GPIO initialization from driver init

* FT81x: Replace gpio_pad_select_gpio with esp_rom alias

* Fix esp_rom_gpio.h path

* FT81x: Fix esp_rom_gpio.h path

* adcraw: Disable usage of gpio_pad_select_gpio

* GC9A01: Remove usage of gpio_pad_select_gpio

* ra8875: Remove usage of gpio_pad_select_gpio

* Revert "esp_backlight: Replace gpio with esp_rom API"

This reverts commit 24e4bf0b88.

* Revert "FT81x: Replace gpio_pad_select_gpio with esp_rom alias"

This reverts commit 8c7bc42140.

* esp_lcd_backlight: Handle different versions of ESP-IDF

* esp_lcd_backlight: Add missing header

* lvgl_spi_conf: Add missing include

* uc8151d/jd79653a: Fix compilation error when logging is enabled

* FT81x: Handle ESP-IDF v4.3 rom_gpio

* FT81x: Add missing include

* Compilation error when SPI Host is not selected

* lvgl_helpers.c: Enable init_ft81x only when FT81X is selected

* adcraw: Handle gpio_pad_selection on multiple ESP-IDF versions

* esp_lcd_backlight: Remove esp_rom functions

* FT81x: Remove esp_rom functions

* adcraw: Remove esp_rom functions
2022-02-02 16:45:52 -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
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
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
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
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
Rashed Talukder bd445ea30a Add touch input values to a FreeRTOS queue 2021-10-19 17:27:27 -07: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 e5b7ef9de2 FT6X36: Fix coordinates invesion
The coordinates need to be swapped before inveting them when swapping is enabled.

Suggested in #118 by @wreyford
2021-09-28 20:58:56 -05:00
C47D 88628042e6 FT6X36: Fix coordinates invesion
The coordinates need to be swapped before inveting them when swapping is enabled.

Suggested in #118 by @wreyford
2021-09-28 20:51:57 -05:00
Rop Gonggrijp 779bf4ecfb Remove remaining IDF_TARGET-dependent GPIO ranges.
See discussion in #70
2021-07-15 12:31:18 +02:00
Rop Gonggrijp 93a44492fc Things suggested by @tore-espressif
See [here](https://github.com/lvgl/lvgl_esp32_drivers/pull/70#pullrequestreview-704302765) in #70
2021-07-14 13:12:49 +02:00
Rop Gonggrijp befa5d0730 directory i2c_manager -> lvgl_i2c 2021-07-14 12:43:19 +02:00
Rop Gonggrijp e52112376f Replace allLVGL driver I2C code with I2C Manager
For discussion see #70
2021-07-08 11:04:07 +02:00
Rop Gonggrijp f32a6f57fc FT6X36 touch: fixed axis-swap, Kconfig defaults. 2021-07-07 20:40:15 +02:00
C47D 0d32432f4c touch driver: Add LVGL v8 compatibility 2021-06-13 15:06:22 -05:00
C47D f726311525 Indev: Add support for GT911 touch driver by @dastarling 2021-06-10 22:49:56 -05:00
C47D d09fd59869 Add ESP32C3 support on Kconfig files 2021-06-10 22:31:09 -05:00
Tomas Rezucha 34d520c7ee Make this repository a single ESP-IDF component 2021-02-23 16:00:21 +01:00
C47D d8ff17a7c7 touch: Handle ESP32S2 idf target 2021-02-04 00:22:03 -06:00
Carlos Diaz fbdc247c25
Merge branch 'master' into feature/add_st7796s 2021-01-15 00:07:27 -06:00
Baoshi 446bed67bd Move st7796 driver file into lvgl_tft folder.
Add missing Kconfig options.
Fix ft6x36 compilation error.
2021-01-11 22:31:57 +08:00
C47D 55c314b685 Update references to LV_DISPLAY_WIDTH 2021-01-09 15:04:53 -06:00
Carlos Diaz 6b1e219a87
Merge pull request #9 from liebman/use_z_test_for_press
XPT2046 optionally (Kconfig option) validate a touch with pressure, not just IRQ low
2020-12-29 21:44:40 -06:00
Christopher Liebman 895434a410 use Kconfig choice for IRQ/PRESS/IRQ&PRESS 2020-12-29 14:40:03 -08:00
Christopher Liebman eaf43e40fa refactoring for clarity on press/touch dection 2020-12-29 13:35:20 -08:00
Christopher Liebman c445eca696 xpt2048 add option for using only touch pressure and ignoring IRQ 2020-12-25 12:42:01 -08:00
Dmytro Kutsyi 9ca8841aac FT6X36 driver uses hardcoded I2C prort number.
Replace hardcoded I2C_NUM_0 by TOUCH_I2C_PORT define.
2020-12-25 15:48:54 +02:00
Christopher Liebman 0fc057b22c add Kconfig option for touch check 2020-12-24 13:46:04 -08:00
Christopher Liebman b7ca802bcd working z test before if-else refactor 2020-12-24 11:26:58 -08:00
C47D 8cd600d8e8 Replace LV_CONF_INCLUDE_SIMPLE with LV_LVGL_H_INCLUDE_SIMPLE 2020-12-21 11:10:35 -06:00
C47D a2a00bd745 Update INCLUDE_SIMPLE symbol 2020-12-20 17:50:53 -06:00
C47D 08384030b0 Move drivers from the lv_port_esp32 to here 2020-12-17 00:02:55 -06:00