summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--echest.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/echest.lua b/echest.lua
index 025d031..681bcc5 100644
--- a/echest.lua
+++ b/echest.lua
@@ -24,6 +24,8 @@ local p = assert((peripheral.find"ender_storage"))
-- end
-- end
+local fp = assert(fs.open("/efreq.list","w"))
+
for x=0,15 do for y=0,15 do for z=0,15 do
term.clearLine()
local _,line = term.getCursorPos()
@@ -32,6 +34,8 @@ for x=0,15 do for y=0,15 do for z=0,15 do
p.setFrequency(2^x, 2^y, 2^z)
local name = p.getName()
if name ~= nil then
- print(name)
+ fp.writeLine(("%d %d %d : %s"):format(x,y,z,name))
+ fp.flush()
end
end end end
+fp.close()