예제 #1
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #2
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #3
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #4
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def setManual(ser):
    spcom(ser, b'SET MANUAL\r\n')
예제 #5
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #6
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #7
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_2_clicked():
    spcom(b'C2\r\n')
예제 #8
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_7_clicked():
    spcom(b'C7\r\n')
예제 #9
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_8_clicked():
    spcom(b'C8\r\n')
예제 #10
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_6_clicked():
    spcom(b'C6\r\n')
예제 #11
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_0_clicked(ser, state):
    # print(state)
    if (state):
        spcom(ser, b'C00\r\n')
    else:
        spcom(ser, b'C01\r\n')
예제 #12
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_5_clicked():
    spcom(b'C5\r\n')
예제 #13
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_4_clicked():
    spcom(b'C4\r\n')
예제 #14
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_3_clicked():
    spcom(b'C3\r\n')
예제 #15
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #16
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_9_clicked():
    spcom(b'C9\r\n')
예제 #17
0
파일: myslot.py 프로젝트: StBaker221B/MCU
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')
예제 #18
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def setAutorepeat(ser):
    spcom(ser, b'SET REPEAT\r\n')
예제 #19
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def setAutostart(ser):
    spcom(ser, b'SET START\r\n')
예제 #20
0
파일: myslot.py 프로젝트: StBaker221B/MCU
def btn_C_1_clicked(ser, state):
    # spcom(b'C1\r\n')
    if (state):
        spcom(ser, b'C10\r\n')
    else:
        spcom(ser, b'C11\r\n')