From eedd07e327bf804829dc9e8d7b8df5eac9c55768 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 1 Apr 2024 04:39:02 +0100 Subject: launch john --- john.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'john.lua') diff --git a/john.lua b/john.lua index 41d81fd..08ce0b2 100644 --- a/john.lua +++ b/john.lua @@ -23,16 +23,17 @@ for ix,iname in ipairs(monitors) do total_width = total_width + (mon.getSize())*2 end local leftover = total_width - W +print("mmm",total_width,W,leftover) local xoffs = math.floor(leftover/2) for ix,iname in ipairs(monitors) do - print("doing",ix,iname) + print("doing",ix,iname,"at",xoffs) local mon = peripheral.wrap(iname) mon.clear() mon.setTextScale(0.5) local _, bee = pcall(function() fb:present(mon,xoffs,0) end) xoffs = xoffs + (mon.getSize())*2 + 8 - print(bee) + -- print(bee) end -- local m = peripheral.wrap "bottom" -- cgit v1.2.3