summaryrefslogtreecommitdiff
path: root/beeite.lua
diff options
context:
space:
mode:
Diffstat (limited to 'beeite.lua')
-rw-r--r--beeite.lua33
1 files changed, 24 insertions, 9 deletions
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)