An 'ON...GOSUB' function would really be nice. Read a button, and handle it, without a whole list of IF..THEN's. :cool:
Printable View
An 'ON...GOSUB' function would really be nice. Read a button, and handle it, without a whole list of IF..THEN's. :cool:
ON GOSUB is already in PBP V2.60.
That was quick :D
Im not using 'button', cause I'm using PCF8574's, but the ON...GOSUB will definately speed up my response code!
You're absolutely right. The SELECT...CASE function works better than an ON...GOSUB for reading a bank of buttons using PCF8574 (or a whole port). You can do the decode right there. Thanks! I never looked very closely at this instruction... at first glance I thought it was related to Upper/Lower case conversion... oops!
Thanks again