Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass thru gps test and cleaned up parsing code (interrupts dont work …
…well, but we don't need them anyways)
- Loading branch information
Showing
2 changed files
with
33 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// test a passthru between USB and hardware serial | ||
|
||
void setup() { | ||
while (!Serial); | ||
Serial.begin(9600); | ||
Serial1.begin(9600); | ||
} | ||
|
||
|
||
void loop() { | ||
if (Serial.available()) { | ||
char c = Serial.read(); | ||
Serial1.write(c); | ||
} | ||
if (Serial1.available()) { | ||
char c = Serial1.read(); | ||
Serial.write(c); | ||
} | ||
} |
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