Hi folks- On Tue, May 26, 2009 at 08:01:31AM +1000, Daniel Gruber wrote: > This python module provides access to the serial port, with backends for > standard Python running on Windows, Linux, BSD (possibly any POSIX > compilant system), Jython and IronPython. The module named "serial" > automatically selects the appropriate backend. > > >>> ser = serial.Serial('/dev/tty0', 19200, timeout=1) > >>> s = ser.read(10) # read up to ten bytes (timeout) > >>> ser.write("hello") # write a string > >>> line = ser.readline() # read a '\n' terminated line > >>> ser.close() > > Tested on i386, macppc. Please test and comment.
Looks pretty good to me. See below for a few modifications, namely: * Capitalize Python (proper noun) in COMMENT. * Spaces around '='. * do-regress target. I'm especially interested in tests of the new do-regress target. The required setup is described in ${WRKSRC}/examples/test.py. Thanks! -- o--------------------------{ Will Maier }--------------------------o | web:.......http://www.lfod.us/ | email.........willma...@ml1.net | *---------------------[ BSD: Live Free or Die ]--------------------*