def __init__(self, sport=True): if sport: self.serial_port = arduino_connect.pc_connect() self.reset()
def __init__(self): self.serial_port = arduino_connect.pc_connect() self.reset()
def __init__(self, sport=True): '''The constructor, connects to arduino''' if sport: self.serial_port = arduino_connect.pc_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.pc_connect() self.reset() self.decoding_loop()