03-24-2022, 06:34 AM
Code:
int i=0;
void setup()
{
Serial2.begin(9600);
}
void loop()
{
i++;
if (i==100) i=0;
Serial2.print("n0.val=");
Serial2.print(i);
Serial2.write(0xff);
Serial2.write(0xff);
Serial2.write(0xff);
delay(200);
}