Posted 05 September 2012 - 12:59 AM
I need to code it, but I'm not sure how to tell the sensor what to do?
How do I code this in? I have transmitter chips and an RP2 chip in my sensor, it's already registered, how do I input the code?you can just use the code:local function loop(delay) while true do local sides={'left','back','right','front'} for i=1,4 do rs.setOutput(sides[i],true) sleep(delay) rs.setOutput(sides[i],false) end end end
Then you call the function with the delay (in seconds) between each light change eg:loop(0.25)
give it a try