Guest User

Untitled

a guest
Feb 15th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ser = serial.Serial(port=PORTNAME, baudrate=115200, timeout=.02)
  2. while True:
  3. # OTHER STUFF IS IN THE LOOP AS WELL THAT DOESN'T HAVE TO DO WITH THE SERIAL
  4. time.sleep(0.01)
  5. data = ser.read(200)
Add Comment
Please, Sign In to add comment