Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("right")
- local mon2 = peripheral.wrap("top")
- monitor.clear()
- mon2.clear()
- mon2.setCursorPos(1,1)
- mon2.write("JOIN THE FFF")
- mon2.setCursorPos(1,2)
- mon2.write("(Femboy furry fox)")
- mon2.setCursorPos(1,3)
- mon2.write("cultists for FREE")
- mon2.setCursorPos(1,4)
- mon2.write("FOOD! Ask ter8 to")
- mon2.setCursorPos(1,5)
- mon2.write("Enlist! join now!")
- print(peripheral.call("right","getSize"))
- local image = paintutils.loadImage("test.nfp")
- term.redirect(monitor)
- paintutils.drawImage(image, 1, 1) --or change 1,1 to the image location
- local dfpwm = require("cc.audio.dfpwm")
- local speaker = peripheral.find("speaker")
- local decoder = dfpwm.make_decoder()
- while true do
- for chunk in io.lines("a.dfpwm", 16 * 1024) do
- local buffer = decoder(chunk)
- while not speaker.playAudio(buffer) do
- os.pullEvent("speaker_audio_empty")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment