Hello,
I am trying to read data coming from my AX12 to the RX1 pin of my arduino mega.
I use this part of code, after asking my AX12 to send his position :
int i = 0;
while(Serial1.available() <= 0)
{
delayMicroseconds(50);
i++;
}
v1 = i;
v2 = Serial.available();
Then I print the values v1 and v2 (later, because I had some problems when trying to use Serial.print when I am doing something else.)
I find :
v1 = 16 or 17, it depends.
v2 = 0
How is that possible ?
Thank you