I am having an issue with serial communication on Flora. I have not been able to
pass data from Serial1 to Serial. I have read that the baud rate of the Serial port
is set by the PC to which a Leonardo is connected and that the USB CDC port is
the one monitored by the Arduino IDE. Serial.println works well and displays any
output in the IDE serial monitor. What I would like to do is write data to the
Serial1 port, then monitor it on the IDE port. Any help would be appreciated.
Serial communication with Flora
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Serial communication with Flora
Try this:
Code: Select all
void setup()
{
Serial.begin(9600);
Serial1.begin(9600);
}
void loop()
{
if (Serial1.available())
{
Serial.write(Serial1.read());
}
}
Please be positive and constructive with your questions and comments.