summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 04:39:02 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 04:39:02 +0100
commiteedd07e327bf804829dc9e8d7b8df5eac9c55768 (patch)
treeec0f2051e3a89eba02881b844d26a058802f36af
parent255ec2a03d5110d2ae99551c3dd42a6dbcf7bf09 (diff)
launch john
-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"