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
|
|
|
|
|
|
|
function playDisk()
|
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
|
|
|
|
|
|
|
if disk.isPresent() and disk.hasAudio() then
|
2021-05-06 04:15:32 +00:00
|
|
|
playDisk(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
|
|
|
|