예제 #1
0
def read():
    """read and return all data from input serial buffer"""
    data = ""
    while Serial2.available():
        data += Serial2.read()
    return data
예제 #2
0
def nacti():
    data = ""
    while Serial2.available():
        data += Serial2.read()
    return data
예제 #3
0
def nacti():
    data = ""
    while Serial2.available():
        data += Serial2.read()
    return data
예제 #4
0
def read():
    """read and return all data from input serial buffer"""
    data = ""
    while Serial2.available():
        data += Serial2.read()
    return data