301
Discussion - EVE / Re: Multiple Buttons Question
« on: August 04, 2021, 03:36:29 PM »
Hello,
Thank you for your post.
I recreated your display list in EVE Screen Editor and it appears as everything is tagged correctly, the first button = 10, second button = 11, the numbers printed on the screen are tag =1. Im currently setting up an MCU to test your code. but I will not it is not necessary to have two separate tag variables, you could perform one read "EVE_memRead8(REG_TOUCH_TAG);" and use this value in one switch() statement.
Can I ask if the EVE_OPT_FLAT state changes for the second button after it has been pressed? by your description it appears as if the toggle_state2 variable is not getting reset to 0.
It may be worth stepping this code in the debugger if to see what's happening with these variables.
Best Regards,
BRT Community
Thank you for your post.
I recreated your display list in EVE Screen Editor and it appears as everything is tagged correctly, the first button = 10, second button = 11, the numbers printed on the screen are tag =1. Im currently setting up an MCU to test your code. but I will not it is not necessary to have two separate tag variables, you could perform one read "EVE_memRead8(REG_TOUCH_TAG);" and use this value in one switch() statement.
Can I ask if the EVE_OPT_FLAT state changes for the second button after it has been pressed? by your description it appears as if the toggle_state2 variable is not getting reset to 0.
It may be worth stepping this code in the debugger if to see what's happening with these variables.
Best Regards,
BRT Community