Pages: [1]   Go Down
Author Topic: USB Leonardo problem  (Read 431 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 610
Posts: 49059
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have tried this loop
But what is it setup()?
Logged

Pages: [1]   Go Up
Jump to: