Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if redstone.getAnalogInput("back") > 13 then
- redstone.setOutput("left", true)
- write ("Charged, turning off")
- end
- if redstone.getAnalogInput("back") < 14 then
- redstone.setOutput("left", false)
- write("Not fullly charged, turning on")
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment