updates
This commit is contained in:
23
pairity_main.lua
Normal file
23
pairity_main.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
kernel = require("kernel")
|
||||
--local reactor = peripheral.find("fissionReactorLogicAdapter")
|
||||
local modem = peripheral.find("modem")
|
||||
local monitor = peripheral.find("monitor")
|
||||
|
||||
function setNewLine()
|
||||
local x,y = monitor.getCursorPos()
|
||||
monitor.setCursorPos(1, y + 1)
|
||||
monitor.clearLine()
|
||||
end
|
||||
|
||||
local function run()
|
||||
monitor.setCursorPos(1,0)
|
||||
while true do
|
||||
setNewLine()
|
||||
monitor.write("Checking for reactor status...")
|
||||
setNewLine()
|
||||
monitor.write("Checking main control loop...")
|
||||
sleep(2)
|
||||
end
|
||||
end
|
||||
|
||||
return { run = run }
|
||||
4
pairity_startup.lua
Normal file
4
pairity_startup.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
local kernel = require("kernel")
|
||||
local main = kernel.addDriver("pairity_main")
|
||||
sleep(5)
|
||||
main.run()
|
||||
Reference in New Issue
Block a user