From: Ralph H. <rh...@bm...> - 2001-10-21 02:54:29
|
I know it's been done before, but I'd like to extend a big thank-you to James Ingham and Daniel Steffen for keeping the faith in Tcl. I have resurrected my Tcl code and got my LEGO Mindstorms add-on working on a Mac too! In case anyone is interested, I was able to get my old Mac6100/60 working with my LEGO Mindstorms system by using the Serial Port OSAX 1.2 and a copy of Apple's Serial Tool. It's really slow, and really ugly because I can't use filevents. I have to poll the port using a procedure that is fired as the result of an "after" even, but it works! I know there must be an easier way to do this eventually but I'm convinced now that port or device access should be done via the channel architecture. The fact that /dev/ttyx looks like a file on Unix systems has hobbled the progress of port access for cross-platform Tcl applications for too long... I'll post a URL to my website that gives the details. I'm pretty proud of the fact that the same script runs on Mac/Win/Linux machines with minimal platform-specific code... Cheers, Ralph Hempel |