New to the arduino thing, but I’m learning everything is pretty much done for you, the difficulty I am having is finding what works with your hardware.
I’m building a generator and I decided to control it with an arduino touch screen and some relays. (switching larger solidstate relays with the small arduino relays of course)
I am able to draw buttons on the screen and sense where I am touching (output to serial monitor), however, for example, I want the button to change colors while I am pressing it. It does appear that the touch coordinates are referenced from a different corner than the drawing coordinates.
I though maybe the screen update was slow so I added a long delay after changing the button color, but still no luck.
Currently I have the sketch configured (supposedly) to turn the screen black when I press the green glow plug button. But no luck
sketch_dec13c.ino (2.61 KB)