SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | if redstone.getAnalogInput("back") > 13 then
| |
| 3 | redstone.setOutput("left", true)
| |
| 4 | write ("Charged, turning off")
| |
| 5 | end | |
| 6 | if redstone.getAnalogInput("back") < 14 then
| |
| 7 | redstone.setOutput("left", false)
| |
| 8 | write("Not fullly charged, turning on")
| |
| 9 | end | |
| 10 | ||
| 11 | sleep(10) | |
| 12 | end |