Go Down

Topic: Connecting to USB serial port on my Leonardo (Read 773 times) previous topic - next topic

Robin2

Image from Reply #14 so we don't have to download it. See this  Simple Image Upload Guide



...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Robin2

Your image reinforces what I said in Replies #7 and #13

However a photo of a pencil drawing that shows the connections with all the pins clearly labelled would be more useful.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

jski3

#17
Mar 07, 2019, 09:24 pm Last Edit: Mar 07, 2019, 09:30 pm by jski3
My sketch is now:
Code: [Select]
void setup()
{
Serial.begin(9600);
}
 
void loop()
{
   Serial1.print("Hello World\n");
   delay(1000);
}


And I tried swapping Rx and Tx connectors.

All to no avail !

BTW, the black USB cord goes to a Fedora box and the white USB cord goes to a Raspberry Pi 3 board running Raspbian.

Robin2

How do you expect to write to Serial1 without a Serial1.begin() statement?

Time to put your brain into gear.  :)

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

jski3

#19
Mar 07, 2019, 10:45 pm Last Edit: Mar 07, 2019, 10:47 pm by jski3
I did and it works.  Didn't notice that at first. Should have responded sooner letting you know. Sorry about that.

Robin2

Thanks for the update. Good to hear you have it working

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

jski3


Go Up