Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ser = serial.Serial(port=PORTNAME, baudrate=115200, timeout=.02)
- while True:
- # OTHER STUFF IS IN THE LOOP AS WELL THAT DOESN'T HAVE TO DO WITH THE SERIAL
- time.sleep(0.01)
- data = ser.read(200)
Add Comment
Please, Sign In to add comment