added peripheral seeking

This commit is contained in:
Lux Aliaga 2021-05-06 00:15:32 -04:00
parent 9fa8b5946d
commit 0862f9589a

View file

@ -1,13 +1,14 @@
local accentColor = colors.gray
local buttonColor = colors.lightGray
local backgroundColor = colors.black
local drive = peripheral.getType("disk_drive")
function playDisk()
disk.playAudio()
disk.playAudio(drive)
end
if disk.isPresent() and disk.hasAudio() then
playDisk()
playDisk(drive)
elseif disk.isPresent() then
print "Not a music disc"
else