Exemple #1
0
 def __init__(self, sport=True):
     if sport:
         self.serial_port = arduino_connect.pc_connect()
     self.reset()
Exemple #2
0
 def __init__(self):
     self.serial_port = arduino_connect.pc_connect()
     self.reset()
Exemple #3
0
 def __init__(self, sport=True):
     '''The constructor, connects to arduino'''
     if sport:
         self.serial_port = arduino_connect.pc_connect()
     self.reset()
Exemple #4
0
def main():
    arduino_connect.pc_connect()
    arduino = arduino_connect.basic_connect('/dev/ttyUSB0')
    while True:
        print(arduino.readline())
        print('-')
Exemple #5
0
 def __init__(self, sport=True):
     if sport:
         self.serial_port = arduino_connect.pc_connect()
     self.reset()
     self.decoding_loop()