Hello all, I am having issues with the touchscreen on my receiver, it is quite unresponsive to touch, typically requiring several taps in one spot to select a function or advance to the next screen. I loaded the calibration file and copied the numbers in the serial monitor then uncommented the calibration data line in the touchscreen calibration section and inserted my calibration data but now it does not compile? It will compile with the data commented out.
I put the data in here:
Code:
//---------------------------------------------------------
// Touch screen calibration
//---------------------------------------------------------
uint16_t calData[5];
if (ExternalEeprom_readInt(CalibDone_Eeprom_adr) != 1) touch_calibrate();
#if (DISPLAY_TYPE == 1)
uint16_t calData[5] = { 502, 3216, 520, 3021, 1 };
for (uint8_t i = 0; i < 5; i++)
{
calData[i] = ExternalEeprom_readInt(CalibData1_Eeprom_adr + (i*2));
delay(10);
}
#endif
tft.setTouch(calData);[/i]
I get this error message, is it possible it has something to do with the libraries?
Code:
[i]Arduino: 1.8.19 (Mac OS X), Board: "MH ET LIVE ESP32MiniKit, 80MHz, Default with spiffs, 921600, None, Disabled"
/Users/user/Documents/Weatherduino/WeatherDuino_4PRO_DB-6 b-010/firmware/WeatherDuino_4PESP32_RX_v6.2_b010/WeatherDuino_4PESP32_RX_v6.2_b010.ino: In function 'void setup()':
WeatherDuino_4PESP32_RX_v6.2_b010:653:23: error: redeclaration of 'uint16_t calData [5]'
uint16_t calData[5] = { 502, 3216, 520, 3021, 1 };
^
/Users/user/Documents/Weatherduino/WeatherDuino_4PRO_DB-6 b-010/firmware/WeatherDuino_4PESP32_RX_v6.2_b010/WeatherDuino_4PESP32_RX_v6.2_b010.ino:649:12: note: 'uint16_t calData [5]' previously declared here
uint16_t calData[5];
^~~~~~~
Multiple libraries were found for "WiFi.h"
Used: /Users/user/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/WiFi
Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi
Not used: /Users/user/Documents/Arduino/libraries/WiFiEspAT
Multiple libraries were found for "RH_RF95.h"
Used: /Users/user/Documents/Arduino/libraries/RadioHead_v1.119
Not used: /Users/user/Documents/Arduino/libraries/RadioHead_v1.121
Multiple libraries were found for "TimeLib.h"
Used: /Users/user/Documents/Arduino/libraries/Time-master
Not used: /Users/user/Documents/Arduino/libraries/Time
Multiple libraries were found for "WebServer.h"
Used: /Users/user/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/WebServer
Not used: /Users/user/Documents/Arduino/libraries/ESPEssentials
exit status 1
redeclaration of 'uint16_t calData [5]'[/i]
Not sure what I'm doing wrong but the touch issues make it quite tricky to use so any help is appreciated,
Thanks!