mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Adapted Lua files to machine functions
This commit is contained in:
parent
2544659d0c
commit
2ed070f7ab
4 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
local timer = require("timer")
|
||||
local machine = require("machine")
|
||||
|
||||
print("Goodbye!")
|
||||
|
||||
timer.sleep(1000)
|
||||
|
||||
os.shutdown(true)
|
||||
machine.reboot()
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
local timer = require("timer")
|
||||
local machine = require("machine")
|
||||
|
||||
print("Goodbye!")
|
||||
|
||||
timer.sleep(1000)
|
||||
|
||||
os.shutdown(false)
|
||||
machine.shutdown()
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local term = require("term")
|
||||
local colors = require("colors")
|
||||
local machine = require("machine")
|
||||
|
||||
term.setForeground(0x59c9ff)
|
||||
term.setBackground(colors.black)
|
||||
|
@ -11,4 +12,4 @@ term.setPos(1, 2)
|
|||
|
||||
dofile("/bin/shell.lua")
|
||||
|
||||
os.shutdown(false)
|
||||
machine.shutdown()
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
local timer = require("timer")
|
||||
local gpu = require("gpu")
|
||||
local fs = require("fs")
|
||||
local machine = require("machine")
|
||||
|
||||
local bootSleep = 2000
|
||||
local bg = 0x0
|
||||
|
@ -72,7 +73,7 @@ local function setupScreen()
|
|||
},
|
||||
{
|
||||
"Shutdown",
|
||||
os.shutdown,
|
||||
machine.shutdown,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue