mirror of
https://fem.mint.lgbt/m/Rhythmblock.git
synced 2024-08-14 20:27:11 +00:00
deleted neodj.lua
This commit is contained in:
parent
196833527c
commit
aaaec32740
1 changed files with 0 additions and 42 deletions
42
neodj.lua
42
neodj.lua
|
@ -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
|
||||
|
Loading…
Reference in a new issue