Going crazy over Gpio....
Posted: Tue Oct 10, 2017 3:40 am
So I have been trying to get my oil warning light working, and have been really struggling... No matter what I do, the Gpio seems to be in a state of 0.
So I finally simplified my code down to this:
And still, all I see returned is:
Oil Warn 0.0
What am I doing wrong??? The channel is on, the sample rate is 1hz, and the mode is output....
Going crazy here!
So I finally simplified my code down to this:
Code: Select all
function onTick()
setGpio(0, 1)
println("Oil Warn " ..getGpio(0))
end
Oil Warn 0.0
What am I doing wrong??? The channel is on, the sample rate is 1hz, and the mode is output....
Going crazy here!