1
0
Fork 0
mirror of https://fem.mint.lgbt/m/Rhythmblock.git synced 2024-08-14 20:27:11 +00:00
Rhythmblock/neodj.lua

24 lines
406 B
Lua
Raw Normal View History

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)
end
2021-05-06 03:55:24 +00:00
2021-05-06 04:20:44 +00:00
function ejectDisc()
end
function stopDisc
end
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"
end
2021-05-06 03:55:24 +00:00