I have a seeedstudio TFT 2.8" touchscreen v.2 (and the associated library) with Arduino Leonardo
I want to print a 4 * 4 grid of squares to the screen and use them as toggle buttons.
I'm not quite sure how to do it elegantly though. Everything I've tried results in a long mess of repetitive code.
I've found this but I'm not quite sure how to translate it into what I'm doing.
Does anyone have any info to help me with this? I feel like it should be fairly easy.
I attached my code. Sorry for how messy it is, I was doing a lot of experimenting.
tftSequencer.ino (11.6 KB)