summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--john.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/john.lua b/john.lua
index 6781b79..b083539 100644
--- a/john.lua
+++ b/john.lua
@@ -14,16 +14,18 @@ if monitors == nil or #monitors < 1 then
error("need john.monitors setting")
end
+fb:ppm(fs.open("img/john.pnm","rb"))
+local xoffs = 0
+
for ix,iname in ipairs(monitors) do
print("doing",ix,iname)
local mon = peripheral.wrap(iname)
mon.clear()
mon.setTextScale(0.5)
- fb:clear()
- fb:ppm(fs.open("img/john.pnm","rb"))
local t = term.redirect(mon)
- local _, bee = pcall(function() fb:present(30,0) end)
+ local _, bee = pcall(function() fb:present(xoffs,0) end)
term.redirect(t)
+ xoffs = xoffs + (mon.getSize())*2 + 8
print(bee)
end