Source

wd_pys60 / meta_simulate_fischer.py

Full commit
NumOfBoard=4
state=["Z","Y","T"]
for board in range(1,NumOfBoard+1):
    for motor in range(1,5):
        for _state in state:
                    print "#define %dM%d%s output(%d,%d,\'%s\')"%(board,motor,_state,board,motor,_state)


for board in range(1,NumOfBoard+1):
    for eIndex in range(1,9):
        print "#define %dE%d input(%d).E[%d]"%(board,eIndex,board,eIndex-1)