I2C Serial Port in Squeak

John M McIntosh johnmci at smalltalkconsulting.com
Fri Oct 29 22:10:23 UTC 2004


On Oct 29, 2004, at 1:57 PM, Ned Konz wrote:

> On Wednesday 27 October 2004 8:45 am, Jon Hylands wrote:
>> Hi everyone,
>>
>> I have a question for the VM guys -- I'm planning on using an I2C bus  
>> on my
>> next autonomous robot, and the Squeak machine I'm going to use
>> (www.gumstix.com) has a hardware I2C interface, with a driver for it  
>> in
>> Linux. As far as I can tell, the I2C port looks just like another  
>> device in
>> Linux, so I'm hoping I can just use the serial port with a different  
>> com
>> port #.
>
> Ah yes, I remember some more...
>
> You can use open/close/read/write/ioctl
>
> However, I don't know if we have an interface to ioctl (this would be  
> a good
> thing to have, though!). Perhaps it's in OSProcess. Or you could use  
> FFI.

I believe an interface to ioctl, open/read/write is in the extended  
serial port support
found on squeak map.

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Squeak-dev mailing list