Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Pulse
- term.clear()
- term.setCursorPos(1,1)
- print("What side?")
- side = read()
- print("Speed?")
- speed = read()
- print("Starting pulses...")
- while true do
- rs.setOutput(side, true)
- term.setCursorPos(2,6)
- print("Status: ON ")
- sleep(speed/2)
- rs.setOutput(side, false)
- term.setCursorPos(2,6)
- print("Status: OFF ")
- sleep(speed/2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement