def __init__(self, sport=True): if sport: self.serial_port = arduino_connect.basic_connect() self.reset()
def main(): arduino_connect.pc_connect() arduino = arduino_connect.basic_connect('/dev/ttyUSB0') while True: print(arduino.readline()) print('-')
def __init__(self, sport=True): if sport: self.serial_port = arduino_connect.basic_connect( '/dev/cu.wchusbserial1420') self.reset()
def __init__(self, sport=True): if sport: self.serial_port = arduino_connect.basic_connect() self.reset()
def __init__(self, sport=None): if sport is None: self.serial_port = arduino_connect.basic_connect() else: self.serial_port = arduino_connect.basic_connect(arport=sport) self.reset()