summaryrefslogtreecommitdiff
path: root/beeite.lua
blob: b1449fe04cc34c5972408924f14ae3740e36cb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
local framebuf = require("framebuf")
local fb = framebuf.new()


local monitors = {
	"monitor_1808", "monitor_1810", "monitor_1809"
}

for ix,iname in ipairs(monitors) do
	print("doing",ix,iname)
	local mon = peripheral.wrap(iname)
	mon.clear()
	mon.setTextScale(0.5)
	fb:clear()
	fb:ppm(fs.open("img/john_"..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)