def setAutostart(ser): spcom(ser, b'SET START\r\n')
def BTN_PROD_PSA2_clicked(ser, state): if (state): spcom(ser, b'PROD PSA2 1\r\n') else: spcom(ser, b'PROD PSA2 0\r\n')
def BTN_COL2_IN_clicked(ser, state): if (state): spcom(ser, b'COL2 IN 1\r\n') else: spcom(ser, b'COL2 IN 0\r\n')
def BTN_PSA2_CLR_clicked(ser, state): if (state): spcom(ser, b'PSA2 CLR 1\r\n') else: spcom(ser, b'PSA2 CLR 0\r\n')
def BTN_PROD_OUT_clicked(ser, state): # print("prod_out") if (state): spcom(ser, b'PROD OUT 1\r\n') else: spcom(ser, b'PROD OUT 0\r\n')
def BTN_PSA2_BAL_clicked(ser, state): if (state): spcom(ser, b'PSA2 BAL 1\r\n') else: spcom(ser, b'PSA2 BAL 0\r\n')
def BTN_PSA1_IN_clicked(ser, state): if (state): spcom(ser, b'PSA1 IN 1\r\n') else: spcom(ser, b'PSA1 IN 0\r\n')
def BTN_PSA2_PRO_clicked(ser, state): if (state): spcom(ser, b'PSA2 PRO 1\r\n') else: spcom(ser, b'PSA2 PRO 0\r\n')
def setPause(ser): spcom(ser, b'PAUSE\r\n')
def setRun(ser): spcom(ser, b'RUN\r\n')
def setManual(ser): spcom(ser, b'SET MANUAL\r\n')
def setAutorepeat(ser): spcom(ser, b'SET REPEAT\r\n')