updated
This commit is contained in:
24
programs/gps.lua
Normal file
24
programs/gps.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
local function start()
|
||||
print("GPS program started.")
|
||||
end
|
||||
|
||||
local function stop()
|
||||
print("GPS program stopped.")
|
||||
end
|
||||
|
||||
local function restart()
|
||||
stop()
|
||||
start()
|
||||
end
|
||||
|
||||
local function main()
|
||||
print("Chat main loop running...")
|
||||
while true do
|
||||
local event = os.pullEvent()
|
||||
if event == "char" then
|
||||
print("GPS Char")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return { start = start, stop = stop, restart = restart, main = main }
|
||||
Reference in New Issue
Block a user