Added notificaiton sound

This commit is contained in:
2025-12-12 15:52:18 -05:00
parent 4e6b83a456
commit e77752efae
5 changed files with 74 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
local modem = peripheral.find("modem")
local PORT = 1
local speaker = require("speaker")
local function start()
if modem then
@@ -30,6 +31,7 @@ local function receiveLoop()
term.setCursorPos(1, y)
term.clearLine()
print("Received: " .. tostring(message))
speaker.play("notification")
write("> ")
end
end