[squeak-dev] Question about serial port communication

Víctor C. T. victorct83 at gmail.com
Sat Jun 20 19:39:37 UTC 2009


Sure:

*| names sp |
names := SerialPort2 portNames.
names do: [:each | Transcript show: each; cr]. "List of ports"
sp := SerialPort2 new.
sp openPortNamed: names first baud: 115200.
(Delay forMilliseconds:2000) wait.
sp isOpen ifTrue: [
...
].
sp close.
*
Is it correct? I don't get any error at this point...

2009/6/20 Jon Hylands <jon at huv.com>

> On Sat, 20 Jun 2009 16:37:53 +0200, Víctor C. T. <victorct83 at gmail.com>
> wrote:
>
> > SerialPort2 is a class that I imported from Scratch source code. The port
> is open correctly, I can see how the board receives data because the RX led
> blinks, but TX doesn't. I tried several ways to do this but anything worked.
> If anyone who's worked with Arduino knows what I'm doing wrong, tell me
> please. I will send the code and more detailed information if needed.
>
> Can you show me how you open the SerialPort?
>
> Later,
> Jon
>
> --------------------------------------------------------------
>   Jon Hylands      Jon at huv.com      http://www.huv.com/jon
>
>  Project: Micro Raptor (Small Biped Velociraptor Robot)
>           http://www.huv.com/blog
>
>


-- 
Víctor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090620/e444b8d3/attachment.htm


More information about the Squeak-dev mailing list