overshoot

Test Modem L4haGdaG

Apr 11th, 2024 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | Gaming | 0 0
  1. -- Test Modem
  2. -- 240416 Rewrite
  3.  
  4. -- Function to Connect to Monitor
  5. local mon
  6.  
  7. local function findMonitor()
  8. mon=peripheral.wrap("right")
  9. -- mon.write("Test 1")
  10.  
  11. if peripheral.wrap("right") then
  12. mon.setTextScale(3)
  13. mon.write("Initialized")
  14. return true
  15. else
  16. print("Did not find")
  17. return false
  18. end
  19. end -- Function find monitor
  20.  
  21.  
  22.  
  23. -------------------------
  24. -- Main Routine
  25. -------------------------
  26. MonExists=findMonitor()
  27. print("Name: ", os.getComputerLabel() )
  28. print("Test printing")
  29. end
Advertisement
Add Comment
Please, Sign In to add comment