Code: Select all
--[[--Pin assignments
RPM is pin 20 / FreqIn channel 0
First light is pin 6 / FreqOut channel 0 / #2 on shift light - green
Second light is pin 5 / FreqOut channel 1 / #1 on shift light - yellow
Third light is pin 4 / FreqOut channel 2 / #3 on shift light - red
--]]--
setTickRate(15)
function onTick()
setPwmDutyCycle(0, 25)
setPwmDutyCycle(1, 50)
setPwmDutyCycle(2, 75)
end
Update, when I read back the configuration, after re-starting RaceAnalyzer the script was there, so it wrote. But the sensor monitor shows FreqOut1, FreqOut2, FreqOut3 at 100%. So clearly my above script is not running.