summaryrefslogtreecommitdiff
path: root/beescroll.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-02 02:32:27 +0100
committerubq323 <ubq323@ubq323.website>2024-04-02 02:32:27 +0100
commit53d533b98a8dadb17510b1bfe95323a2d1cce276 (patch)
treefdaf2eb55550c81fb6f83e804250de2112b547d1 /beescroll.lua
parent3ab742484740d257d147ea2640f986356f67e407 (diff)
launch beescroll
Diffstat (limited to 'beescroll.lua')
-rw-r--r--beescroll.lua12
1 files changed, 12 insertions, 0 deletions
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