It seems easy, however I am loosing about it.
I have a little skectch that read the id of the pressed button a manage it ....
after manage, I put the button again to -1 to avoid multiples "operations", just one in each click.... at first, it was the most common.
But now I have a different necesity... there are special buttons (let say spBtn) that must go on working... like a button of a volumen in a TV ..... I mean... change the value.... a little pause and if it is still pressed go on "changing the volumen" until I give up pressing....
But I am loosing and not expreriences on it... now I have it:
void loop() {
int pressed_button = misBotones.checkButtons();
if (pressed_button >=0){
manage(MiSitio, pressed_button);
}
pressed_button = -1; //to avoid multiples managgeis
}
...and for the new necessity, I think more or less like that:
void loop() {
int pressed_button = misBotones.checkButtons();
if (pressed_button >=0){
manage(MiSitio, pressed_button);
}
if (not spBtn)
{
pressed_button = -1; //to avoid multiples managgeis
}
}
I dont have the touch screen here... just thinking....
I think that it would work... but I still miss the "pause" until go on ......
How can I controll it???
Thanks.