summaryrefslogtreecommitdiff
path: root/arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde
diff options
context:
space:
mode:
Diffstat (limited to 'arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde')
-rw-r--r--arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde33
1 files changed, 0 insertions, 33 deletions
diff --git a/arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde b/arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde
deleted file mode 100644
index 73aa991..0000000
--- a/arduino_libs/NewSoftSerial/Examples/TwoNSSTest/TwoNSSTest.pde
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <NewSoftSerial.h>
-
-NewSoftSerial nss(2, 3);
-NewSoftSerial nss2(4, 5);
-
-void setup()
-{
- nss2.begin(4800);
- nss.begin(4800);
- Serial.begin(115200);
-}
-
-void loop()
-{
- // Every 10 seconds switch from
- // one serial GPS device to the other
- if ((millis() / 10000) % 2 == 0)
- {
- if (nss.available())
- {
- Serial.print(nss.read(), BYTE);
- }
- }
-
- else
- {
- if (nss2.available())
- {
- Serial.print(nss2.read(), BYTE);
- }
- }
-}
-