From 53d533b98a8dadb17510b1bfe95323a2d1cce276 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 2 Apr 2024 02:32:27 +0100 Subject: launch beescroll --- beescroll.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 beescroll.lua (limited to 'beescroll.lua') diff --git a/beescroll.lua b/beescroll.lua new file mode 100644 index 0000000..72b61b8 --- /dev/null +++ b/beescroll.lua @@ -0,0 +1,12 @@ +local m = peripheral.find"monitor" + +local W,H = m.getSize() + +while true do + local x = math.random(0,100000) + m.scroll(1) + m.setCursorPos(1,H) + m.write(string.format("%04d",x)) + os.sleep(1) + +end -- cgit v1.2.3