summaryrefslogtreecommitdiff
path: root/john.lua
diff options
context:
space:
mode:
Diffstat (limited to 'john.lua')
-rw-r--r--john.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/john.lua b/john.lua
new file mode 100644
index 0000000..b1449fe
--- /dev/null
+++ b/john.lua
@@ -0,0 +1,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)