Dude, I don't understand any of that! (well, a little bit, but mostly foggy to my mind).
I gather you are reading the whole port, but I don't understand where CASE is getting any of those variables to distinguish the different buttons (if that's what it's doing).
It looks like "while apushbutton!=0" is saying wait as long as the button is no longer pressed?
Actually, is it doing what I described as the operation of the switch at all? It looks like it is doing something only if button is pressed and released under one second. Opposite than press once for one beep and press and hold for two beeps and another routine.
For the record, the buttons are going to be on ports 0, 2, 4 and 5 so not straight across 0-3 which probably is easier, but not workable in what I have to do.
Sorry, I'm not good enough at this to understand completely.
Bart
Bookmarks