Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import serial
  2.  
  3. from matplotlib import pyplot
  4. import matplotlib
  5. import matplotlib.style
  6. matplotlib.style.use('ggplot')
  7. # pyplot.ion()
  8. pyplot.show(False)
  9.  
  10. ser = serial.Serial('/dev/cu.wchusbserial1420', 115200, timeout=1)
  11. # ser = serial.Serial('/dev/cu.usbmodem1413', 115200, timeout=1)
  12.  
  13. signal = list()
  14.  
  15. while 1:
  16. point = ser.readline()
  17. print(point)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement