Creating selectable items on tft screen

Hello,

I hope everyone is doing well. I have a programming question and I'm not really sure how to approach this feature I'm trying to implement. This is way out of my league, and I'm actually surprised I was able to get this far with what I have so far. I would like to apologize in advance if this seems so scattered brain.

On the picture below, I would like to be able to use the upper left button as a means to make a selection on the current screen. Specifically, I want it so when I press the button, it will show a filled circle through the bullet list which I can scroll through and make selection on the task.

The ultimate goal is to be able to scroll and mark the task I've completed.

Right now, all I'm able to do is display what I want when the button is pressed, but it's only on the first task. Something tells me that this may be a switch case thing, but I'm not sure.

Library I'm using:
TFT_eSPI and JC_Button

Probably it's the code in line 42.

3 Likes

What is "this far?"

The methodical approach is to first make a plan for what the two buttons should do, and then write code to carry out that plan.

The Adafruit Clue has only two buttons, and a button library with example code for using them with an action menu.