Posted 24 November 2013 - 01:55 PM
i was messing about trying to hook up icbm launchers and needed a way to quickly see what they can do.. so i wrote a program to find out, im a very novice lua person…like majorly novice so there may be better ways but i found it useful so i thought i would share it
usage, if the program is called detect, you would run "detect back" and it would output all that the peripheral at the back can do
or if you have connected the peripheral with lan cables (see here for a good guide on that by @Kingdaro) then "detect monitor_0" would show all for monitor_0 etc
local tArgs = {...}
per = tArgs[1]
for i,v in ipairs(peripheral.getMethods(per))
do print(i..". "..v)
end
usage, if the program is called detect, you would run "detect back" and it would output all that the peripheral at the back can do
or if you have connected the peripheral with lan cables (see here for a good guide on that by @Kingdaro) then "detect monitor_0" would show all for monitor_0 etc