Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("top")
- while true do
- if p.getActive() then
- if p.getRotorSpeed() < 1800 then
- p.setInductorEngaged(false)
- else
- p.setInductorEngaged(true)
- end
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement