deleted neodj.lua

This commit is contained in:
mint 2021-05-06 10:22:55 -04:00
parent 196833527c
commit aaaec32740
1 changed files with 0 additions and 42 deletions

View File

@ -1,42 +0,0 @@
accentColor = colors.gray
buttonColor = colors.lightGray
backgroundColor = colors.black
peripherals = peripheral.getNames()
if #peripherals < 0 then
print "No drive"
else
driveCount = 0
for n = 1, #peripherals do
local driveCheck = peripherals[n]
if peripheral.getType(driveCheck) == "drive" then
drive = driveCheck
driveCount = driveCount + 1
end
end
if driveCount > 1 then
print("Too many disk drives. Please remove some and try again")
exit()
end
end
function playDisc()
disk.playAudio(drive)
print(disk.getAudioTitle(drive))
end
function ejectDisc()
disk.eject()
end
function stopDisc()
disk.stopAudio()
end
if disk.isPresent(drive) and disk.hasAudio(drive) then
playDisc(drive)
elseif disk.isPresent(drive) then
print "Not a music disc"
else
print "No disc"
end