Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = 0
- p = peripheral.wrap("right")
- print(p.isReady())
- p.seek(-1)
- read()
- inp = fs.open("testout.dfpwm", "rb")
- for s in inp.read do
- c = c + 1
- p.write(s)
- --print(s)
- os.queueEvent("")
- coroutine.yield()
- print("yielded"..c)
- end
- print("done, playing")
- p.play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement