GPS module GM318B sample / with Crowduino(3.3V)+Grove Shield
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://www.aitendo.com/product/1007 | |
| // GPS module GM318B test | |
| // Crowduino-3.3V + GroveShield | |
| #include <SoftwareSerial.h> | |
| SoftwareSerial mySerial(10, 11); // RX, TX | |
| void setup() | |
| { | |
| // Open serial communications and wait for port to open: | |
| Serial.begin(9600); | |
| while (!Serial) { | |
| ; // wait for serial port to connect. Needed for Leonardo only | |
| } | |
| Serial.println("+++ GPS module GM318B +++"); | |
| // set the data rate for the SoftwareSerial port | |
| mySerial.begin(4800); | |
| } | |
| void loop() // run over and over | |
| { | |
| if (mySerial.available()) | |
| Serial.write(mySerial.read()); | |
| if (Serial.available()) | |
| mySerial.write(Serial.read()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment