Guest User

startup

a guest
Jan 21st, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. local monitor = peripheral.wrap("right")
  2. local mon2 = peripheral.wrap("top")
  3. monitor.clear()
  4. mon2.clear()
  5. mon2.setCursorPos(1,1)
  6. mon2.write("JOIN THE FFF")
  7. mon2.setCursorPos(1,2)
  8. mon2.write("(Femboy furry fox)")
  9. mon2.setCursorPos(1,3)
  10. mon2.write("cultists for FREE")
  11. mon2.setCursorPos(1,4)
  12. mon2.write("FOOD! Ask ter8 to")
  13. mon2.setCursorPos(1,5)
  14. mon2.write("Enlist! join now!")
  15.  
  16. print(peripheral.call("right","getSize"))
  17. local image = paintutils.loadImage("test.nfp")
  18. term.redirect(monitor)
  19. paintutils.drawImage(image, 1, 1) --or change 1,1 to the image location
  20. local dfpwm = require("cc.audio.dfpwm")
  21. local speaker = peripheral.find("speaker")
  22. local decoder = dfpwm.make_decoder()
  23. while true do
  24.     for chunk in io.lines("a.dfpwm", 16 * 1024) do
  25.         local buffer = decoder(chunk)
  26.         while not speaker.playAudio(buffer) do
  27.             os.pullEvent("speaker_audio_empty")
  28.         end
  29.     end
  30.        
  31. end
Advertisement
Add Comment
Please, Sign In to add comment