But seriously - have any of you "experts" who are patient enough to answer the same q's time and time again ever thought of grouping your answers into a Wiki type dynamic on line manual ?
... and to wrap this up this is the bit of code I was (re)inventing to look for any button press and then transfer out which button.
Button_read:
BUTTON_PRESSED = 0 ' set no button pressed to start
WHILE BUTTON_PRESSED = 0
BUTTONS = PORTB & BUTTON_MASK 'READ PORTB and pick out the bits I want
IF BUTTONS <> BUTTON_MASK then BUTTON_PRESSED = 1 'if any selected pin has been pulled to 0 then button pressed
PAUSE 10
WEND
Menu_1 = BUTTONS.3
Menu_2 = BUTTONS.4
RETURN
It works just fine now, thanks for the pointers. I've no idea why the bit extraction did not work the first time, sods law.
What's the fun in that?
Everyone gets all their answers from a wiki, and we've got nobody to talk to.
We are your "Living Wiki". And can answer questions that haven't even been asked yet. Then once answered, it becomes part of our own little PICWIKI (otherwise known as the FORUM). It may not be organized as well ... but it is DYNAMIC.
<br>
DT
<!-- Search Google --><left><FORM method=GET action=http://www.google.com/custom><TABLE bgcolor=#FFFFFF cellspacing=0 border=0><tr valign=top><td><A HREF=http://www.google.com/search><IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A></td><td><INPUT TYPE=text name=q size=31 maxlength=255 value=""><INPUT type=submit name=sa VALUE="Google Search"><INPUT type=hidden name=cof VALUE="S:http://www.picbasic.co.uk/forum;AH:left;LH:37;L:http://www.crownhill.co.uk/logo.gif;LW:174;AWFID:f08c2ab0d3333e22;"><input type=hidden name=domains value="picbasic.co.uk"><br><input type=radio name=sitesearch value=""> Search WWW <input type=radio name=sitesearch value="picbasic.co.uk" checked> Search picbasic.co.uk </td></tr></TABLE></FORM></left><!-- Search Google --><script type="text/javascript">var adminuser = document.getElementById("inlinemodform");if (adminuser == null) {document.write(" ");} else {document.write("<br><br><b>This form won't work for Admin Users.<br>The inlinemod form interferes with the search form</b>");}</script>
Last edited by Darrel Taylor; - 3rd August 2008 at 20:08.
DT
Bookmarks