From e395a2aa8c8bd4400d3250edd3e30cabe2604f53 Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Wed, 18 Sep 2013 16:28:00 -0700 Subject: [PATCH] Fixed Serial1 references in leo_echo sketch --- examples/leo_echo/leo_echo.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/leo_echo/leo_echo.ino b/examples/leo_echo/leo_echo.ino index 8830a2a..572d4bf 100644 --- a/examples/leo_echo/leo_echo.ino +++ b/examples/leo_echo/leo_echo.ino @@ -25,11 +25,11 @@ // If using software serial, keep these lines enabled // (you can change the pin numbers to match your wiring): -//SoftwareSerial mySerial(8, 7); +SoftwareSerial mySerial(8, 7); // If using hardware serial, comment // out the above two lines and enable these two lines instead: -HardwareSerial mySerial = Serial1; +//HardwareSerial mySerial = Serial1; #define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,1000*1F" #define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C" @@ -50,10 +50,10 @@ void setup() { while (!Serial); // wait for leo to be ready Serial.begin(57600); // this baud rate doesn't actually matter! - Serial1.begin(9600); + mySerial.begin(9600); delay(2000); Serial.println("Get version!"); - Serial1.println(PMTK_Q_RELEASE); + mySerial.println(PMTK_Q_RELEASE); // you can send various commands to get it started //mySerial.println(PMTK_SET_NMEA_OUTPUT_RMCGGA); @@ -73,4 +73,4 @@ void loop() { char c = mySerial.read(); Serial.write(c); } -} \ No newline at end of file +}