Rhythmblock/neodj.lua

24 lines
408 B
Lua

local accentColor = colors.gray
local buttonColor = colors.lightGray
local backgroundColor = colors.black
local drive = peripheral.getType("disk_drive")
function playDisc()
disk.playAudio(drive)
end
function ejectDisc()
end
function stopDisc()
end
if disk.isPresent(drive) and disk.hasAudio(drive) then
playDisc(drive)
elseif disk.isPresent() then
print "Not a music disc"
else
print "No disc"
end