Poodletooth-iLand/dependencies/panda/python/Lib/serial/writeblockingtest.py
2015-05-29 05:03:48 -05:00

12 lines
No EOL
194 B
Python

import serial
import time
def test():
ser = serial.Serial(0, 300)
print time.time()
ser.write('*' * 120)
print time.time()
ser.close()
if __name__ == '__main__':
test()