2021-05-06 03:55:24 +00:00
|
|
|
local accentColor = colors.gray
|
|
|
|
local buttonColor = colors.lightGray
|
|
|
|
local backgroundColor = colors.black
|
2021-05-06 04:15:32 +00:00
|
|
|
local drive = peripheral.getType("disk_drive")
|
2021-05-06 03:55:24 +00:00
|
|
|
|
2021-05-06 04:20:44 +00:00
|
|
|
function playDisc()
|
2021-05-06 04:15:32 +00:00
|
|
|
disk.playAudio(drive)
|
2021-05-06 04:13:16 +00:00
|
|
|
end
|
2021-05-06 03:55:24 +00:00
|
|
|
|
2021-05-06 04:20:44 +00:00
|
|
|
function ejectDisc()
|
|
|
|
end
|
|
|
|
|
|
|
|
function stopDisc
|
|
|
|
end
|
|
|
|
|
2021-05-06 04:16:32 +00:00
|
|
|
if disk.isPresent(drive) and disk.hasAudio(drive) then
|
2021-05-06 04:20:44 +00:00
|
|
|
playDisc(drive)
|
2021-05-06 03:55:24 +00:00
|
|
|
elseif disk.isPresent() then
|
|
|
|
print "Not a music disc"
|
|
|
|
else
|
|
|
|
print "No disc"
|
2021-05-06 04:13:16 +00:00
|
|
|
end
|
2021-05-06 03:55:24 +00:00
|
|
|
|