Putting robotics at your service™

Free shipping on orders over $200

Set and Reset a function with 1 button

Print view Share :
Previous topicNext topic

Page 1 of 1 [ 1 post ]

Rookie ( offline )
Posts: 28
Posted: 2011-04-17 12:25 
hi,

Found myself stuck on something that i tought to be easy, so i dont understand what im doing wrong!
I wanne use (for now) the select button to "enable power to arm" and then i wanne turn it of with the same button!

Code:
' pin 6 get high, but not able to make low, only when temp(1) is a different button (247)
if temp(1)=254 and prevtemp(1) =255 and bitje = 1 then 'change temp(1) to 247 then it works.
low Enable_power_to_arm'pin 6
bitje = 0'a bit i try to use as a memory
endif
if temp(1)=254 and prevtemp(1) =255 and bitje = 0 then
high Enable_power_to_arm'pin 6
bitje = 1
endif


robert


 

All times are UTC - 5 hours [ DST ]. It is currently 2014-09-20 03:55
Feedback Form
Feedback Form