Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

MultiFloorLift - F1-F3

Xyzzy Jan 19th, 2013 (edited) 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. local inS = "right"
  2. local otS = "left"
  3. local udS = "back"
  4. h = io.open("counter", "w")
  5.  
  6. function Pulse(nColors)
  7.   rs.setBundledOutput(otS, nColors)
  8.   sleep(0.2)
  9.   rs.setBundledOutput(otS, 0)
  10. end
  11.  
  12. h:write("3")
  13. h:close()
  14.  
  15. while true do
  16.   if rs.getInput(udS) == true then
  17.     shell.run("2floor-drv")
  18.   else
  19.     Pulse(colors.yellow)
  20.     sleep(0.2)
  21.     shell.run("2floor-drv")
  22.   end
  23. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top