Hi Guys,
Quick question, im using a jumper on a circuit where one side is connected to GPIO.3 and the other via a 1K resistor to +ve, is correct or should I be puling it down to ground rather? (Hope not cause I had boards printed, :-)
Does anyone have any code examples of how to read if the jumper is on and also when its taken off?
Thinking something like:
Code:
Jumper var GPIO.4
if jumper then
XXXX
else
YYYY
to check if its on and:
Code:
if not jumper then
ZZZ
however not sure if this would work or not (marginal sucess in the early testing).
Thanks
rob
Bookmarks