Skip to content

Instantly share code, notes, and snippets.

View Bioscreeper's full-sized avatar
💭
happi

Bioscreeper

💭
happi
  • 12:35 (UTC +10:00)
View GitHub Profile
--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)