1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-16 13:44:49 +00:00
opus/sys/extensions/device.lua
kepler155c@gmail.com 9f5c58cc4c web run applications
2017-09-05 21:21:43 -04:00

14 lines
207 B
Lua

if _G.device then
return
end
requireInjector(getfenv(1))
local Peripheral = require('peripheral')
_G.device = { }
for _,side in pairs(peripheral.getNames()) do
Peripheral.addDevice(device, side)
end