diff options
Diffstat (limited to 'beeite.lua')
-rw-r--r-- | beeite.lua | 33 |
1 files changed, 24 insertions, 9 deletions
@@ -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) |