Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- ser = serial.Serial('COM32', baudrate=115200, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,
- bytesize=serial.EIGHTBITS, xonxoff=1)
- text = open("temptext1.txt", "a+")
- while 1:
- read_line = ser.readline()
- print read_line
- text.write(read_line)
Add Comment
Please, Sign In to add comment