Guest User

test3

a guest
Jun 17th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. --Load API
  2. os.loadAPI("Papi/tDrive")
  3.  
  4. --Set up two peripherals
  5. MO = 0
  6.  
  7. Moni1, Moni2 = tDrive.findTperipherals("monitor")
  8.  
  9. --Moni1 holds side info and mon1 is variable to write with
  10. mon1, mon2 = tDrive.wrapTperipherals(Moni1, Moni2)
  11.  
  12. mon1.write("This is Monitor 1!")
  13. mon2.write("This is Monitor 2!")
  14. print("There is "..MO.."/2 monitors connected.")
Advertisement
Add Comment
Please, Sign In to add comment