Wow, many thanks to all of you! Now it works! Problem was in sending partly
in my arduino (I have sending it by println (print and then print newline)
and not print and I have sending as a decimal, not byte) and partly in
Squeak (where I am receiving it into string and using it by readString first
Thanks, but I have done it with opening port in initialization, but it
didn't help. And I have tried to change it to reading a byteArray and it
didn't help too. Here is the monticello package of my class. I'll try to do
something with my arduino too.
On Sat, Feb 6, 2010 at 7:30 PM, Yoshiki Ohshima
At Fri, 5 Feb 2010 18:56:43 +0100,
Garret Raziel wrote:
>
> and it works almost fine. But there is a bug. Time to time I receive only a
> part of value, for example I am receiving: 56 55
> 56 55 5 6 55 ... 102 103 101
> 103 100 102 1 1 0 102 102. Those one-digit values are truly false and it
> l
Hi Garret,
i can only guess here but i would use one Serial port and keep it open
all the time.
GR> readColor
GR> | s n |
GR> n := SerialPort new.
GR> n baudRate: 9600.
GR> n openPort: 7.
What happens if the port is opened in the middle of a transmitted
Byte? I will take the firs
Thanks so much, it just works! And I have another problem, but now I will be
propably more difficult. I have morph that reads values from SerialPort and
on the other end of Serial cabel I have an arduino (AVR microchip). I am
reading values from 0 to 255 on arduino's pin (I have infrared receiver
h
On 2/4/10 7:18 PM, "Garret Raziel" wrote:
> hi, can anyone help me with some code? I want to have a Morph object that
> change his color by values that squeak gets from SerialPort. I have wroted
> code of getting values and changing color but I dunno how to do that the morph
> change its color
hi, can anyone help me with some code? I want to have a Morph object that
change his color by values that squeak gets from SerialPort. I have wroted
code of getting values and changing color but I dunno how to do that the
morph change its color forever. If i call method "AMorph changeColor" in
some