fix: replace peripheral.wrap with peripheral.find for speaker initialization

This commit is contained in:
2025-06-16 20:49:03 -04:00
parent 7839936ea7
commit 110ceed23d

View File

@@ -5,18 +5,18 @@ local monitor = peripheral.wrap("top")
controlRoomSpeakers = peripheral.find("speaker")
local speakers = {
peripheral.wrap("speaker_0"),
peripheral.wrap("speaker_1"),
peripheral.wrap("speaker_2"),
peripheral.wrap("speaker_3"),
peripheral.wrap("speaker_4"),
peripheral.wrap("speaker_5"),
peripheral.wrap("speaker_6"),
peripheral.wrap("speaker_7"),
peripheral.wrap("speaker_8"),
peripheral.wrap("speaker_9"),
peripheral.wrap("speaker_10"),
peripheral.wrap("speaker_11"),
peripheral.find("speaker_0"),
peripheral.find("speaker_1"),
peripheral.find("speaker_2"),
peripheral.find("speaker_3"),
peripheral.find("speaker_4"),
peripheral.find("speaker_5"),
peripheral.find("speaker_6"),
peripheral.find("speaker_7"),
peripheral.find("speaker_8"),
peripheral.find("speaker_9"),
peripheral.find("speaker_10"),
peripheral.find("speaker_11"),
}
function setNewLine()