Go Down

Topic: USB Leonardo problem (Read 464 times) previous topic - next topic

jorge5a

Hi ti everyone:

I used to communicate Arduino and Linux embedded system by USB and ever was well.
Now with Leonardo I have a problem.
I can send from my Linux system using
echo text > /dev/ttyUSB0
but the Leonardo don't answer- I have tried this loop
void loop() {
    int sensorReading = analogRead(A0);
    Serial.println(sensorReading);
    delay(1);
}

But I can show that the tx led is off. Leonardo is not sending values, I know that works fine, because works with the Arduino IDE but how could I start the sending on Leonardo?

I can't understand that

Thanks

PaulS

Quote
I have tried this loop

But what is it setup()?

Go Up