MattW:
/*
Interface to Orbiter Flightdeck
*/
int analog = 0;
char pitch[11];
void setup()
{
Serial.begin(115200);
}
void loop()
{
analog = analogRead(0);
sprintf(pitch, "<129 %4d>",analog);
Serial.print(pitch);
for(int i = 0; i<100; i++)
{
sprintf(pitch,"<%3d %4d>",i,i*10);
Serial.print(pitch);
}
}
I doubt that this code never "freezed." It fills the TX buffer quite quickly.