[PD] Pduino: change read speed

Roman Haefeli reduzierer at yahoo.de
Sat Jan 13 18:27:23 CET 2007


On Sat, 2007-01-13 at 10:50 -0500, Martin Peach wrote:

> Also you could try changing the checkForInput function so that it stays 
> there longer:
> Change:
> void checkForInput() {
>     if(Serial.available()) { 
>         while(Serial.available()) {
>             processInput( (byte)Serial.read() );
>         }
>     }
> }
> 
> to:
> void checkForInput() {
>     int i = 100;  
>     while (--i) {
>         if(Serial.available()) { 
>             while(Serial.available()) {
>                 processInput( (byte)Serial.read() );
>             }
>         }
>     }
> }

this worked for me. messages TO the board don't get delayed anymore.
many thanks again. 

:-)

cheers
roman


		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de





More information about the Pd-list mailing list