-
Notifications
You must be signed in to change notification settings - Fork 313
Description
Getting a few errors, one noticing that the touch display GPIOs need to be connected to "ADC1" and not "ADC2" because...
"#define GPIO_TO_ADC_ELEMENT(x) [x] = CONCAT3(ADC1_GPIO, x, _CHANNEL)" from lvgl_touch->adcraw.h"
Can we add a case for uses to utilize ADC2 gpios? Even then, moving onto ADC1 gpios... it produces
I've tried GPIO36 & 35 for Y-,X+ which on the ESP32 wrover B provides function ADC1_CH7,ADC1_CH0. Theoretically it should work right? It produces:
"vgl_touch/adcraw.h:58:46: error: 'ADC1_GPIO36_CHANNEL' undeclared here (not in a function); did you mean 'ADC1_CHANNEL_7'?
#define GPIO_TO_ADC_ELEMENT(x) [x] = CONCAT3(ADC1_GPIO, x, _CHANNEL)"
I added the "#include "soc/adc_channel.h" as other users suggested it and now it produces..
""/components/lvgl_esp32_drivers/lvgl_touch/adcraw.c:163:2: error: implicit declaration of function 'adc_gpio_init'; did you mean 'gpio_init'? [-Werror=implicit-function-declaration]
adc_gpio_init(ADC_UNIT_1, channel);" from lvgl_touch->adcraw.c"
I'm able to display the lvgl demo on my ILI9341 Display controller however as soon as I try to implement the lvgl ADCRAW to use my 4 wire resistance touch from the display it produces these issues. What am I doing wrong? Or is there an issue regarding the driver files itself?
Very similar to this issue:
https://forum.lvgl.io/t/how-to-enable-touch-on-adafruit-3-5-tft-lcd-board/4798