Need Help- Programmers wanted
Benbo231
Posts: 26
I cannot get this program to work-neither btn does anything
please proofread...
··········
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
please proofread...
··········
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
Comments
I see many things wrong with your listing but without knowing more on what you are trying to do, it might not make sense to post.
I have also attached a working 10 button program. There are better ways to press buttons but this works to take 4 push button presses and total them into a 4 digit number.
thne it backs up and turns, then starts over. It's a modified version of the robot in the end of Electronics for dummies
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
btn1· VAR Byte
btn2· VAR Byte
cnt· VAR Byte
loop
PULSOUT 12, 1000
PULSOUT 13, 500
PAUSE 15
BUTTON 1,0,255,250,btn1,0,noSwitch
BUTTON 2,0,255,250,btn2,0,noSwitch
OUT0=btn1
FOR cnt=1 TO 50
· PULSOUT 12, 500
· PULSOUT 13, 1000
· PULSOUT 12, 1000
· PULSOUT 13, 1000
· NEXT
OUT0=btn2
FOR cnt=1 TO 50
· PULSOUT 12, 500
· PULSOUT 13, 1000
· PULSOUT 12,·500
· PULSOUT 13,·500
· NEXT
· OUT0 =0
·noSwitch: GOTO loop
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Someday Monkeys will rule the world. Then you'll be the first to go!