27 lines
425 B
Lua
27 lines
425 B
Lua
accentColor = colors.gray
|
|
buttonColor = colors.lightGray
|
|
backgroundColor = colors.black
|
|
drive = peripheral.getType("disk_drive")
|
|
if drive == 0 then
|
|
print "No drive"
|
|
end
|
|
|
|
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
|
|
|