Commit 064e4f54 authored by samuel.hobman's avatar samuel.hobman

Add new file

parent 37d39081
import serial
ser = serial.Serial('COM3', 9600, timeout=1) # this was the port used on my computer. Yours may differ.
ser.flush()
while True:
if ser.inWaiting() > 0:
text = ser.readline().decode('utf-8').rstrip() # gets serial information into text
if text: # checks if we have something in the string
if
fileWrite = open("data.txt", "w")
fileWrite.write(text)
fileWrite.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment