Added notificaiton sound
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user