# Kay Hutchinson 10/18/19
# Communicate with and control Arduino

# Import libraries
import serial
import io
import time

# Arduino port and baud rate
port = "/dev/ttyACM0"
baud = 9600
ser = serial.Serial(port,baud)

while (True):

    for i in range(5):

        # Read serial line from Arduino
        x = ser.readline()
        print(x)

    # Write commands to serial (in bytes)
    ser.write(b'I')






# Close the serial property
ser.close()

95e0e9687c240fe3e1ba4b92796de3a468510258
<mask token>

<mask token>
while True:
    for i in range(5):
        x = ser.readline()
        print(x)
    ser.write(b'I')
ser.close()

<mask token>
port = '/dev/ttyACM0'
baud = 9600
ser = serial.Serial(port, baud)
while True:
    for i in range(5):
        x = ser.readline()
        print(x)
    ser.write(b'I')
ser.close()

import serial
import io
import time
port = '/dev/ttyACM0'
baud = 9600
ser = serial.Serial(port, baud)
while True:
    for i in range(5):
        x = ser.readline()
        print(x)
    ser.write(b'I')
ser.close()

# Kay Hutchinson 10/18/19
# Communicate with and control Arduino

# Import libraries
import serial
import io
import time

# Arduino port and baud rate
port = "/dev/ttyACM0"
baud = 9600
ser = serial.Serial(port,baud)

while (True):

    for i in range(5):

        # Read serial line from Arduino
        x = ser.readline()
        print(x)

    # Write commands to serial (in bytes)
    ser.write(b'I')






# Close the serial property
ser.close()
