-->
Page 1 of 1

Newbie question.

PostPosted: Sun Jul 24, 2016 1:06 pm
by RaspberryPiThree
When I save this code as a close.lua file and run dofile("close.lua") nothing happens. Please help.

gpio.mode(4,gpio.OUTPUT)
gpio.write(4,gpio.HIGH)
gpio.mode(3,gpio.OUTPUT)
gpio.write(3,gpio.LOW)
gpio.mode(3,0)

Re: Newbie question.

PostPosted: Sat Aug 20, 2016 5:43 pm
by hkubota
gpio.mode(3,0)

makes no sense to have in this code. But it's unlikely the problem here.
Have you checked that D3/D4 do not have HIGH resp. LOW?
What did you expect will happen?