I'll point you to the extended serial port support squeak map package.
http://map1.squeakfoundation.org/sm/package/36c286ee-c0af-4853-98a4 -42ea9540f571
Although it's for serial ports, I guess you could subclass for parallel ports. If you have unix you have everything you need. If you have windows, then it's more work since the primitves for windows don't exist as far as I know.
On Dec 1, 2003, at 1:40 PM, unknown wrote:
Hi!
I´ve build a controller card with that you can control something via your parallel port.
The problem is I can´t use it. The card works but I have found only one class in Squeak to
control that port and it doesn´t work. Either Squeak breaks down or it gives error messages.
I´m also able to write a bit in C and Pascal but I want write the program in Squeak.
I have searched for another smalltalk environment but no one gives access to ports.
If anybody helped me I would make a good tutorial to build an interface.
thx
Stuff _______________________________________________________________________ _______ WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und nutzen Sie die neuen Funktionenhttp://f.web.de/features/?mc=021130
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
On Mon, 1 Dec 2003 14:01:45 -0800, John M McIntosh johnmci@smalltalkconsulting.com wrote:
If you have windows, then it's more work since the primitves for windows don't exist as far as I know.
You can access the parallel port using FFI from Squeak -- there are any number of DLLs out there on the net that give access to the parallel port from any version of windows except NT or 2000, and interfacing Squeak to an external DLL, although painful, is relatively straight-forward...
Later, Jon
-------------------------------------------------------------- Jon Hylands Jon@huv.com http://www.huv.com/jon
Project: Micro Seeker (Micro Autonomous Underwater Vehicle) http://www.huv.com
Well the enhanced serial port squeakmap provide a set of classes to manage serial ports for many platforms (unix like and os-9) You still need to make the operating system specific calls, and do things like for example dtr: setting data terminal ready means what call and using which magic numbers? This framework could be used for parallel ports and certainly you could use FFI versus primitives.
On Dec 1, 2003, at 2:22 PM, Jon Hylands wrote:
On Mon, 1 Dec 2003 14:01:45 -0800, John M McIntosh johnmci@smalltalkconsulting.com wrote:
If you have windows, then it's more work since the primitves for windows don't exist as far as I know.
You can access the parallel port using FFI from Squeak -- there are any number of DLLs out there on the net that give access to the parallel port from any version of windows except NT or 2000, and interfacing Squeak to an external DLL, although painful, is relatively straight-forward...
Later, Jon
Jon Hylands Jon@huv.com http://www.huv.com/jon
Project: Micro Seeker (Micro Autonomous Underwater Vehicle) http://www.huv.com
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
squeak-dev@lists.squeakfoundation.org