Hello. I am currently using this menu on a TTGO T-display:
Arduino Menu 4
When I click "start dice" I need to display a screen that shows a dice face which changes depending on the orientation of the dice. For now I will be happy with "start dice" just displaying an image of a dice that will change when needed.
Is anybody familiar with this menu and can help me program a event into the "start dice" option. I currently have this:
result dice_1(menuOut& o,idleEvent e) {
if (e==idling) {
gfx.fillScreen(TFT_BLACK);
gfx.fillRoundRect(70, 20, 100, 100, 8, TFT_WHITE);
gfx.fillCircle(120, 70, 8, TFT_BLACK);
return proceed;
}
return proceed;
}
//and this is the menu calling it.
MENU(dice,"Dice Orientation",doNothing,noEvent,noStyle
,OP("Start Dice",dice_1,enterEvent)
,SUBMENU(diceOpt)
,EXIT("<Back")
);
After tinkering with the code, I can get the dice image to display over the top of the menu, but this is literally just drawing it over the top, and the menu is still active behind.
Thank you in advance for any help you can give me.

