Am I well understood....
in the "knock sensor"'s Tutorial, it's written
printString("Knock!");
Is this a way to send something from the board to the computer ?
Is it possible to receive the code (the mesage, the string) in an app (director, Processing) ?
With those programs it is possible to read what is happening in the serial communication between your board and the computer.
On the other hand, you can use any computer program that has access to the serial port to read the data. Director with the serial Xtra is a good candidate. Processing 095 (the latest version) has a great example to read data from the serial port, etc.
Why don't you start with the serial terminal in order to understand how things work, and then you jump to use e.g. Processing? (Unless you are already familiar to Processing, when it would be much better to start that way)
i've used the led_blink script and add a printString
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
printString ("Allume"); // envoie une chaine sur le port serie
printByte(10); // EOLN
printByte(13); // CR (retour charriot)
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
printString ("Eteint"); // envoie une chaine sur le port serie
printByte(10); // EOLN
printByte(13); // CR (retour charriot)
delay(1000); // waits for a second
}
cool.
I've tested with the serproxy (thx Massimo for the late answer) and Flash (code from instantSoup) and works great too.
thanks :-*
PS: what is an EOLN ?...
I've found : "End Of LiNe"