nameless12242312

Untitled

Nov 1st, 2024 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. local mc = require("motorCont")
  2.  
  3. --motor initialization
  4. local master = mc:new("7",100,100)
  5. local slave = mc:new("8",100,100)
  6.  
  7. master:setSlave(slave)
  8.  
  9. local slaves = master:getSlaves()
  10.  
  11. for i in #slaves do
  12.     print(i)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment