i donot have my 014M that i have ordered yet. But I have been reading and working on code already. For sake of this question i will say i want to turn on an led attached to output 0 when a button attached to input 1 is pushed and off when the button is released.
something like
main:
if pin1 = 1 then
high 0
else
low 0
endif
goto main
But my questions comes that i would like to just be able to have a button inbetween 0v and input 1. so when it is pressed it is 0v and not it is floating. is this possible to acomplish what i want and if so what would the logic be? from reading the manuals im not sure if this is possible.
could someone please enlighten my newb mind. Thank you.
something like
main:
if pin1 = 1 then
high 0
else
low 0
endif
goto main
But my questions comes that i would like to just be able to have a button inbetween 0v and input 1. so when it is pressed it is 0v and not it is floating. is this possible to acomplish what i want and if so what would the logic be? from reading the manuals im not sure if this is possible.
could someone please enlighten my newb mind. Thank you.