Go Down

Topic: USB Leonardo problem (Read 521 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy