2017-02-05 09:47 AM
Hi everyone,
I'm having issues with a simple Pong game that i'm doing. The games consists of 2 pads and 1 ball, the ball moves accordingly to the program till any player use its pad. When a player moves the pad on the touchscreen the ball becames slower, and more slower if the second player is moving it too (multi touch enabled), searching where the problem was coming from i ended up in the touchscreen driver.
I don't know what to do, i tried to read the touch in the screen only if the position was different from before or commenting some lines, or using a higher I2C frecuency, but no success.
Greetings!
#pong #touch #stm32f746-discovery #touchscreen2017-02-05 11:31 AM
The display has a refresh rate and I guess the STM32 can catch an event for each frame.
If it is 50Hz, each frame would be 20 msec (20000us) budget to cater for the worst case.
Add a SW scheme to detect if the SW processing takes more than a frame time to go to the root cause.
I2C is shared with Audio and LCD. LCD has INT line.