+1 vote
in Touch Interface by (130 points)
The touch points are not working. The time does not change when I touch the top portion of the screen. I was trying to do some custom work in it as well, so I made a button. But when I am on the button screen, no matter where I press, it is like I pressed the button. So I went back to your code and added some code to print the touch coordinates the serial, but it is only printing mumbo jumbo to the serial. I installed the TouchPaint sketch from the Mini_Grafx library and if I touch on the bottom left, the dot appears in the top right. If I touch the top left, it appears in the bottom right, so it's mirrored around the center. I have tried completely reformatting my esp8266 and redoing the touch calibration and it doesn't work.

1 Answer

+1 vote
by (10.0k points)

Hi 

I think by playing with a few lines in TouchControllerWS.cpp you can fix the mirror:
https://github.com/ThingPulse/esp8266-weather-station-color/blob/master/TouchControllerWS.cpp#L98

Try to change these lines    

int x = (p.y - ax) * dx;
int y = 320 - (p.x - ay) * dy;

into

int x = 200 - (p.y - ax) * dx;
int y = (p.x - ay) * dy;

I'm not quite sure why some devices behave like this...

by (270 points)
Maybe the reason is because of different starter sets. I got a set with a totally different custom PCB compared to the board shown in your description.
https://docs.thingpulse.com/guides/wifi-color-display-kit/

There was no need to remove the SD card slot holder e.g.
Maybe the display is different too.

It seems to be that the physical description in the docs is outdated.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...