Poodletooth-iLand/panda/python/Lib/serial/writeblockingtest.py

12 lines
194 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
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()