ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.17k stars 209 forks source link

Touch and Serial Monitor #388

Open boromyr opened 3 years ago

boromyr commented 3 years ago

Describe the problem

The touchscreen and the diplay works perfectly if the serial monitor is open. When the serial monitor is closed, the touch does not work or only works on a part of the screen. I tried several examples,diag_ard_touch_test, diag_ard_touch_calib, ex26_ard_calc...

Device hardware

Please confirm whether:

Additional info

The Adafruit Touchscreen library has been changed to read the values ​​from a scale to 10bit (ADC Arduino) to 12 (ADC ESP32), and the touch was calibrated with diag_ard_touch_calib.

ImpulseAdventure commented 3 years ago

Hi @boromyr —

In the default configuration, GUIslice enables debugging messages (to report errors) and also indicate the startup initialization.

Please give the following a try: 1) Disable startup messaging by adding the following line to your config file:

2) If that doesn’t avoid the issue, please try disabling all serial debug messaging by changing the existing DEBUG_ERR setting in Section 5 of your config to 0:

Does either change the behavior for you?

boromyr commented 3 years ago

I tried with your proposed solutions but no results, I also tried to comment on serial.begin (n) without any results. I did some research but it seems to be the first to have this problem, it's probably not a bug, but a PIN problem, since the ones I use also have a serial function. image