Rhythmblock/neodj.lua

18 lines
347 B
Lua

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