Created
September 8, 2016 01:00
-
-
Save justarandomgeek/aa55255eae1684fed3b0cc9df084c03d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program "LIST SIGNALS" | |
//r4 = signals to list | |
//r5 = seekop, .signal-S == current signal | |
//r6 = .signal-white=result of seekop | |
r4 = r18 // r18 connected to read a roboport | |
r5 = [seekop] | |
while r5.signal-S<300 | |
exec r5 //r6.signal-white = r4.S | |
if r6.signal-white > 0 | |
rNixie.signal-grey=1 | |
rNixie.signal-white = r6.signal-white | |
r6.signal-grey += r5.signal-S + 10000 | |
rNixie = [r6.signal-grey] | |
end | |
r5.signal-S+=1 | |
end | |
{} | |
seekop: {.signal-0=58,.signal-R=4,.signal-S=1,.signal-V=6,.signal-W=44} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment