Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- local Chanel = 1505
- modem.open(Chanel)
- local Etat = "Set"
- while true do
- local day = rs.getAnalogInput("left")
- if day < 5 then
- Etat = "On"
- elseif day > 7 then
- Etat = "Off"
- end
- modem.transmit(Chanel,Chanel,Etat)
- end
Advertisement
Add Comment
Please, Sign In to add comment