LCD AppMod HELP
I need help with the LCD AppMod.
Can somebody make me a source code that monitors each button and goes to a separate subroutine for a button that is pressed? Tell it to do nothing if two buttons are pressed at the same time.
I want the subroutines to be:
Button1
Button2
Button3
Button4
Button 1 is the leftmost button and button 4 is the rightmost button.
I do want to use the LCD...
Thanks
Can somebody make me a source code that monitors each button and goes to a separate subroutine for a button that is pressed? Tell it to do nothing if two buttons are pressed at the same time.
I want the subroutines to be:
Button1
Button2
Button3
Button4
Button 1 is the leftmost button and button 4 is the rightmost button.
I do want to use the LCD...
Thanks

Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not new at basic stamp, but i am new at the LCD AppMod
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not new at basic stamp, but i am new at the LCD AppMod
' Special thanks to Crust Crawler Robotics for allowing free access to it's Hex Crawler manual to FINALLY figure this out! :) DO GOSUB LCD_Get_Buttons ' Go check for buttons pressed IF btnA = 1 THEN ' If BtnA (leftmost button) is pressed, then... HIGH 13 ' Turn on a green LED on P13 ENDIF LOOPHere is the subroutine
LCD_Get_Buttons: LcdDirs = %0000 ' make LCD bus inputs buttons = %1111 ' assume all pressed FOR scan = 1 TO 10 buttons = buttons & LcdBusIn ' make sure button held PAUSE 5 ' debounce 10 x 5 ms NEXT LcdDirs = %1111 ' return bus to outputs RETURN▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not new at basic stamp, but i am new at the LCD AppMod