Advertisement
Telerabi

Disk Drive Tür

Jul 5th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. print("wie soll das Passwort sein?")
  2. passwort = read()
  3. term.clear()
  4.  
  5. while true do
  6.     side = os.pullEvent("disk")
  7.     if(side and disk.isPresent("bottom")) then
  8.         if(disk.getLabel("bottom") == passwort) then
  9.             disk.eject("bottom")
  10.             rs.setOutput("right", true)
  11.             sleep(2)
  12.             rs.setOutput("right", false)
  13.         end
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement