Skip to content

Instantly share code, notes, and snippets.

@mark
Created December 9, 2013 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark/7866721 to your computer and use it in GitHub Desktop.
Save mark/7866721 to your computer and use it in GitHub Desktop.
inputs = [[:sensor, "input1", 0], [:sensor, "input2", 1], [:sensor, "input3", 2], [:sensor, "input4", 3], [:sensor, "input5", 4], [:sensor, "input6", 5], [:sensor, "input7", 6], [:sensor, "input8", 7], [:sensor, "input9", 8], [:sensor, "input10", 9], [:sensor, "input11", 10], [:sensor, "input12", 11], [:sensor, "input13", 12], [:sensor, "input14", 13], [:sensor, "input15", 14], [:sensor, "input16", 15], [:sensor, "input17", 16], [:sensor, "input18", 17], [:sensor, "input19", 18], [:sensor, "input20", 19]]
outputs = [[:effector, "output1", 0], [:effector, "output2", 39], [:effector, "output3", 40], [:effector, "output4", 41], [:effector, "output5", 42], [:effector, "output6", 43], [:effector, "output7", 44], [:effector, "output8", 45], [:effector, "output9", 46], [:effector, "output10", 47], [:effector, "output11", 48], [:effector, "output12", 49], [:effector, "output13", 50], [:effector, "output14", 51], [:effector, "output15", 52], [:effector, "output16", 53], [:effector, "output17", 54], [:effector, "output18", 55], [:effector, "output19", 56], [:effector, "output20", 57]]
instructions = [
["none", [0], 20],
["none", [1], 21],
["none", [2], 22],
["none", [3], 23],
["none", [4], 24],
["none", [5], 25],
["none", [6], 26],
["none", [7], 27],
["none", [8], 28],
["none", [9], 29],
["none", [10], 30],
["none", [11], 31],
["none", [12], 32],
["none", [13], 33],
["none", [14], 34],
["none", [15], 35],
["none", [16], 36],
["none", [17], 37],
["none", [18], 38],
["all", [20, 1], 39],
["all", [20, 21, 2], 40],
["all", [20, 21, 22, 3], 41],
["all", [20, 21, 22, 23, 4], 42],
["all", [20, 21, 22, 23, 24, 5], 43],
["all", [20, 21, 22, 23, 24, 25, 6], 44],
["all", [20, 21, 22, 23, 24, 25, 26, 7], 45],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 8], 46],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 9], 47],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 10], 48],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 11], 49],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 12], 50],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 13], 51],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 14], 52],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 15], 53],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 16], 54],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 17], 55],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 18], 56],
["all", [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 19], 57],
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment