An 'ON...GOSUB' function would really be nice. Read a button, and handle it, without a whole list of IF..THEN's.
An 'ON...GOSUB' function would really be nice. Read a button, and handle it, without a whole list of IF..THEN's.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
That was quick
Im not using 'button', cause I'm using PCF8574's, but the ON...GOSUB will definately speed up my response code!
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
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
Bookmarks