From 890d45c4c9b703fa99e9c40f60cf2b659ee6fa51 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 1 Apr 2024 02:43:51 +0100 Subject: launch john --- john.lua | 8 +++++--- 1 file 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 -- cgit v1.2.3