Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- from matplotlib import pyplot
- import matplotlib
- import matplotlib.style
- matplotlib.style.use('ggplot')
- # pyplot.ion()
- pyplot.show(False)
- ser = serial.Serial('/dev/cu.wchusbserial1420', 115200, timeout=1)
- # ser = serial.Serial('/dev/cu.usbmodem1413', 115200, timeout=1)
- signal = list()
- while 1:
- point = ser.readline()
- print(point)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement