Compare commits
No commits in common. "0ef5e931b71f291219f86cb5a8c2c9d6a6b72c0d" and "ff5c9d2f7668f393e5aea9cc4e3343d670e00115" have entirely different histories.
0ef5e931b7
...
ff5c9d2f76
25
sample.lua
25
sample.lua
|
@ -1,25 +0,0 @@
|
||||||
position = mem.position
|
|
||||||
if position == nil then
|
|
||||||
position = 0
|
|
||||||
end
|
|
||||||
position = position + 1
|
|
||||||
if position > num_of_notes then
|
|
||||||
position = 1
|
|
||||||
end
|
|
||||||
mem.position = position
|
|
||||||
|
|
||||||
if pin.b then
|
|
||||||
if notes[position] == nil then
|
|
||||||
port = {a=false, b=false, c=false, d=false}
|
|
||||||
elseif note[position] == 1 then
|
|
||||||
port = {a=true, b=false, c=false, d=false}
|
|
||||||
elseif note[position] == 2 then
|
|
||||||
port = {a=false, b=true, c=false, d=false}
|
|
||||||
elseif note[position] == 3 then
|
|
||||||
port = {a=false, b=false, c=true, d=false}
|
|
||||||
elseif note[position] == 1 then
|
|
||||||
port = {a=false, b=false, c=false, d=true}
|
|
||||||
end
|
|
||||||
else
|
|
||||||
mem.position = 0
|
|
||||||
end
|
|
Loading…
Reference in New Issue