2016-12-11 19:24:52 +00:00
|
|
|
_G.device = { }
|
|
|
|
|
|
|
|
require = requireInjector(getfenv(1))
|
|
|
|
local Peripheral = require('peripheral')
|
|
|
|
|
|
|
|
for _,side in pairs(peripheral.getNames()) do
|
2017-04-01 23:21:49 +00:00
|
|
|
Peripheral.addDevice(device, side)
|
2016-12-11 19:24:52 +00:00
|
|
|
end
|