Restricted amount of Tags ? #119
Replies: 2 comments 3 replies
-
The tags "only" go from 0 to 255, so directly there is no way around this. Apart from using per-screen tag values, one way out could be to use groups of buttons sharing a tag and then using the touch coordinates to find the specific button that was touched within a group. |
Beta Was this translation helpful? Give feedback.
-
In this project I did it like this, yes.
That is just the name of the function that provided the part of the display list that was needed for the screen "config". Then I used switch(screen) and called the necessary function. So I named it "screen", but the way I used my functions was more like as a window. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have been using your library since October 2022, and it has been really useful for my touchscreen projects ever since !
However, in my actual project, the touchscreen requires quite a lot of buttons (each of them is assigned a tag value ofc), and I have reached case 255.
But from that point, no more button with a tag higher than 255 wants to "work".
I looked up the function associated with the tag reading value (EVE_memRead8) and noticed two other similar functions (EVE_memRead16 & EVE_memRead32) which looked promising to solve the issue.
Unfortunately, even when using those functions (and at the same time changing the length of the "tag" variable from uint8_t to uint16_t or uint32_t) the buttons are still not working.
Do you have any idea on how to solve this "issue"?
Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions