-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TFT_print() problem after TFT_read_touch() call #52
Comments
Hi Chris, Thank you, |
Hi Viet, before integrating this library into my AquariOS project (https://danner-net.de/ao.htm) in order to control an ILI9341/XPT2046 device, I had to fix minor bugs in _direct_send(), readPixel() and _drawLine() and rewrite touch_get_data() and TFT_read_touch_xpt2046(). What I still experience is a wrong background color of the first character that's drawn with TFT_print() after switching from ts_spi to disp_spi, which I wasn't able to sort out. That's why I have to do a dummy "TFT_print( " ", x, y);" between polling the touch device and intended TFT_print() calls, which as a side effect only causes a hardly noticeable flicker. Nevertheless it would be nice to get that fixed. Kind regards Chris |
@chrdan do you mind posting your touch rewrites somewhere? I'm running into the same issue apparently. |
same problem for me with XPT2046 and loboris great library. |
With TOUCH_TYPE_XPT2046 activated after calling TFT_read_touch() the TFT_print() command shows the first character of the given string crippled, which means the left and right part of that single character are swapped (for example an "O" changes from "()" to ")("), and its foreground color also isn't set correctly.
To get that result insert
in tft_demo.c after line 996:
Is there a display reinitialization problem after switching devices (disp_spi -> ts_spi -> disp_spi)?
Nice library, btw!
TIA
Chris
The text was updated successfully, but these errors were encountered: