summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--john.lua5
1 files changed, 3 insertions, 2 deletions
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"