From cf4c4a0bbbaf5c8e4d2c994fb5cf0ae2553a1dee Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 31 Mar 2024 00:16:45 +0000 Subject: launch beeite --- beeite.lua | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'beeite.lua') diff --git a/beeite.lua b/beeite.lua index 3931cb3..de206f7 100644 --- a/beeite.lua +++ b/beeite.lua @@ -3,12 +3,27 @@ local fb = framebuf.new() fb:ppm(fs.open("img/goo.pnm","rb")) -local m = peripheral.wrap "bottom" -m.clear() -m.setTextScale(0.5) -local t = term.redirect(m) -local _, bee = pcall(function() - fb:present() -end) -term.redirect(t) -print(bee) +local monitors = { + "bottom", "monitor_373", "monitor_1814" +} + +for ix,iname in ipairs(monitors) do + local mon = peripheral.wrap(iname) + mon.clear() + mon.setTextScale(0.5) + fb:ppm(fs.open("img/tokipona_"..ix..".pnm","rb")) + local t = term.redirect(mon) + local _, bee = pcall(function() fb:present() end) + term.redirect(t) + print(bee) +end + +-- local m = peripheral.wrap "bottom" +-- m.clear() +-- m.setTextScale(0.5) +-- local t = term.redirect(m) +-- local _, bee = pcall(function() +-- fb:present() +-- end) +-- term.redirect(t) +-- print(bee) -- cgit v1.2.3