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

MultiFloorLift - call-floor2

Xyzzy Jan 19th, 2013 (edited) 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. counterFile = fs.open("counter", "r")
  2. fileContent = counterFile.readAll()
  3.  
  4.  
  5.  if fileContent == "1" then
  6.   print("F1-F2")
  7.   sleep(0.3)
  8.   shell.run("F1-F2")
  9.  elseif fileContent == "3" then
  10.   print("F3-F2")
  11.   sleep(0.3)
  12.   shell.run("F3-F2")
  13.  elseif fileContent == "4" then
  14.   print("F4-F2")
  15.   sleep(0.3)
  16.   shell.run("F4-F2")
  17.  else
  18.   print("run startup")
  19.   sleep(0.2)
  20.   shell.run("startup")
  21.  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