summaryrefslogtreecommitdiff
path: root/john.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 02:43:51 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 02:43:51 +0100
commit890d45c4c9b703fa99e9c40f60cf2b659ee6fa51 (patch)
treea622cd029a99c329319a0ed17ed9c05e42115191 /john.lua
parent1e39dcd6920448d4e9ec936dca9b4c8fd9b677a2 (diff)
launch john
Diffstat (limited to 'john.lua')
-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