Translations of this page:
This is an old revision of the document!
About this Article
Use the arduino commuication with through uart.It is an expamle test the uart inter
String comdata = "";
void setup()
{
Serial.begin(9600);
}
void loop()
{
while (Serial.available() > 0)
{
comdata += char(Serial.read());
delay(2);
}
if (comdata.length() > 0)
{
Serial.println(comdata);
comdata = "";
}
}