updated a bunch

This commit is contained in:
2025-06-17 17:09:57 -04:00
parent 4e57946e82
commit 2711d658ea
4 changed files with 31 additions and 30 deletions

25
speaker_main.lua Normal file
View File

@@ -0,0 +1,25 @@
speaker = peripheral.find("speaker")
speakerDriver = kernel.addDriver("speaker_driver")
local function startup()
parallel.waitForAll(speakerDriver.startup)
end
local function shutDown()
parallel.waitForAll(speakerDriver.shutDown)
end
local function runSafe()
startup()
end
local function run()
local success, err = pcall(runSafe)
if not success then
os.reboot()
end
end
return { run = run }