mirror of
https://fem.mint.lgbt/m/Rhythmblock.git
synced 2024-08-14 20:27:11 +00:00
added references to future variables
This commit is contained in:
parent
a2eae16921
commit
89b5245e56
1 changed files with 8 additions and 2 deletions
10
neodj.lua
10
neodj.lua
|
@ -3,12 +3,18 @@ local buttonColor = colors.lightGray
|
||||||
local backgroundColor = colors.black
|
local backgroundColor = colors.black
|
||||||
local drive = peripheral.getType("disk_drive")
|
local drive = peripheral.getType("disk_drive")
|
||||||
|
|
||||||
function playDisk()
|
function playDisc()
|
||||||
disk.playAudio(drive)
|
disk.playAudio(drive)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ejectDisc()
|
||||||
|
end
|
||||||
|
|
||||||
|
function stopDisc
|
||||||
|
end
|
||||||
|
|
||||||
if disk.isPresent(drive) and disk.hasAudio(drive) then
|
if disk.isPresent(drive) and disk.hasAudio(drive) then
|
||||||
playDisk(drive)
|
playDisc(drive)
|
||||||
elseif disk.isPresent() then
|
elseif disk.isPresent() then
|
||||||
print "Not a music disc"
|
print "Not a music disc"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue