This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Copyright Dr | |
local listen = {ch=65500,id=1000} | |
local dfpwm = require("cc.audio.dfpwm") | |
local decoders = {left=dfpwm.make_decoder(),right=dfpwm.make_decoder()} | |
repeat --Find a wireless modem to listen with | |
for _,dev in ipairs({peripheral.find("modem")}) do | |
if dev.isWireless and dev.isWireless() then modem=dev end | |
end | |
until modem | |
modem.open(listen.ch) |