diff --git a/examples/GPS_HardwareSerial_EchoTest/.esp8266.test.skip b/examples/GPS_HardwareSerial_EchoTest/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_EchoTest/.uno.test.skip b/examples/GPS_HardwareSerial_EchoTest/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_EchoTest/GPS_HardwareSerial_EchoTest.ino b/examples/GPS_HardwareSerial_EchoTest/GPS_HardwareSerial_EchoTest.ino index 8eeb591..b71be79 100644 --- a/examples/GPS_HardwareSerial_EchoTest/GPS_HardwareSerial_EchoTest.ino +++ b/examples/GPS_HardwareSerial_EchoTest/GPS_HardwareSerial_EchoTest.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Ultimate GPS Using Hardware Serial // (e.g. GPS for Leonardo, Flora or FeatherWing) // @@ -44,8 +41,3 @@ void loop() { Serial.write(c); } } - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_HardwareSerial_LOCUS_DumpBasic/.esp8266.test.skip b/examples/GPS_HardwareSerial_LOCUS_DumpBasic/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_DumpBasic/.uno.test.skip b/examples/GPS_HardwareSerial_LOCUS_DumpBasic/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_DumpBasic/GPS_HardwareSerial_LOCUS_DumpBasic.ino b/examples/GPS_HardwareSerial_LOCUS_DumpBasic/GPS_HardwareSerial_LOCUS_DumpBasic.ino index 8dc4e15..a7d72a2 100644 --- a/examples/GPS_HardwareSerial_LOCUS_DumpBasic/GPS_HardwareSerial_LOCUS_DumpBasic.ino +++ b/examples/GPS_HardwareSerial_LOCUS_DumpBasic/GPS_HardwareSerial_LOCUS_DumpBasic.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Adafruit GPS modules using MTK3329/MTK3339 driver // // This code turns on the LOCUS built-in datalogger. The datalogger @@ -67,8 +64,3 @@ void loop() // run over and over again Serial.write(c); } }//loop - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_HardwareSerial_LOCUS_Erase/.esp8266.test.skip b/examples/GPS_HardwareSerial_LOCUS_Erase/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Erase/.uno.test.skip b/examples/GPS_HardwareSerial_LOCUS_Erase/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Erase/GPS_HardwareSerial_LOCUS_Erase.ino b/examples/GPS_HardwareSerial_LOCUS_Erase/GPS_HardwareSerial_LOCUS_Erase.ino index a1c2e38..50e77bf 100644 --- a/examples/GPS_HardwareSerial_LOCUS_Erase/GPS_HardwareSerial_LOCUS_Erase.ino +++ b/examples/GPS_HardwareSerial_LOCUS_Erase/GPS_HardwareSerial_LOCUS_Erase.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Adafruit GPS modules using MTK3329/MTK3339 driver // // This code erases the LOCUS built-in datalogger storage @@ -69,8 +66,3 @@ void loop() // run over and over again Serial.write(c); } } - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_HardwareSerial_LOCUS_Start/.esp8266.test.skip b/examples/GPS_HardwareSerial_LOCUS_Start/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Start/.uno.test.skip b/examples/GPS_HardwareSerial_LOCUS_Start/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Start/GPS_HardwareSerial_LOCUS_Start.ino b/examples/GPS_HardwareSerial_LOCUS_Start/GPS_HardwareSerial_LOCUS_Start.ino index bbd8269..ca7ace0 100644 --- a/examples/GPS_HardwareSerial_LOCUS_Start/GPS_HardwareSerial_LOCUS_Start.ino +++ b/examples/GPS_HardwareSerial_LOCUS_Start/GPS_HardwareSerial_LOCUS_Start.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Adafruit GPS modules using MTK3329/MTK3339 driver // // This code turns on the LOCUS built-in datalogger. The datalogger @@ -72,9 +69,3 @@ void loop() // run over and over again } /******************************************************************/ - - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_HardwareSerial_LOCUS_Status/.esp8266.test.skip b/examples/GPS_HardwareSerial_LOCUS_Status/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Status/.uno.test.skip b/examples/GPS_HardwareSerial_LOCUS_Status/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_LOCUS_Status/GPS_HardwareSerial_LOCUS_Status.ino b/examples/GPS_HardwareSerial_LOCUS_Status/GPS_HardwareSerial_LOCUS_Status.ino index 8862ad4..49d5f53 100644 --- a/examples/GPS_HardwareSerial_LOCUS_Status/GPS_HardwareSerial_LOCUS_Status.ino +++ b/examples/GPS_HardwareSerial_LOCUS_Status/GPS_HardwareSerial_LOCUS_Status.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Adafruit GPS modules using MTK3329/MTK3339 driver // // This code turns on the LOCUS built-in datalogger. The datalogger @@ -103,8 +100,3 @@ void loop() // run over and over again }//if (GPS.LOCUS_ReadStatus()) }//if (millis() > updateTime) }//loop - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_HardwareSerial_Parsing/.esp8266.test.skip b/examples/GPS_HardwareSerial_Parsing/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_Parsing/.uno.test.skip b/examples/GPS_HardwareSerial_Parsing/.uno.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino b/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino index dd318ce..711d79c 100644 --- a/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino +++ b/examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino @@ -1,6 +1,3 @@ -// Only for boards that support hardware serial -#ifdef Serial1 - // Test code for Ultimate GPS Using Hardware Serial (e.g. GPS Flora or FeatherWing) // // This code shows how to listen to the GPS module via polling. Best used with @@ -108,8 +105,3 @@ void loop() // run over and over again } } } - -#else // Do nothing for boards without hardware serial - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_EchoTest/.due.test.skip b/examples/GPS_SoftwareSerial_EchoTest/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_EchoTest/.esp32.test.skip b/examples/GPS_SoftwareSerial_EchoTest/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_EchoTest/.m4.test.skip b/examples/GPS_SoftwareSerial_EchoTest/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_EchoTest/.zero.test.skip b/examples/GPS_SoftwareSerial_EchoTest/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_EchoTest/GPS_SoftwareSerial_EchoTest.ino b/examples/GPS_SoftwareSerial_EchoTest/GPS_SoftwareSerial_EchoTest.ino index 1844d87..621f923 100644 --- a/examples/GPS_SoftwareSerial_EchoTest/GPS_SoftwareSerial_EchoTest.ino +++ b/examples/GPS_SoftwareSerial_EchoTest/GPS_SoftwareSerial_EchoTest.ino @@ -9,9 +9,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -66,8 +63,3 @@ void loop() { Serial.write(c); } } - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.due.test.skip b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.esp32.test.skip b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.m4.test.skip b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.zero.test.skip b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/GPS_SoftwareSerial_LOCUS_DumpBasic.ino b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/GPS_SoftwareSerial_LOCUS_DumpBasic.ino index 9fd9288..79374c8 100644 --- a/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/GPS_SoftwareSerial_LOCUS_DumpBasic.ino +++ b/examples/GPS_SoftwareSerial_LOCUS_DumpBasic/GPS_SoftwareSerial_LOCUS_DumpBasic.ino @@ -10,9 +10,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -61,8 +58,3 @@ void loop() // run over and over again } } } - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_LOCUS_Erase/.due.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Erase/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Erase/.esp32.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Erase/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Erase/.m4.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Erase/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Erase/.zero.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Erase/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Erase/GPS_SoftwareSerial_LOCUS_Erase.ino b/examples/GPS_SoftwareSerial_LOCUS_Erase/GPS_SoftwareSerial_LOCUS_Erase.ino index 4591d62..e3b07c4 100644 --- a/examples/GPS_SoftwareSerial_LOCUS_Erase/GPS_SoftwareSerial_LOCUS_Erase.ino +++ b/examples/GPS_SoftwareSerial_LOCUS_Erase/GPS_SoftwareSerial_LOCUS_Erase.ino @@ -8,9 +8,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -31,7 +28,6 @@ Adafruit_GPS GPS(&mySerial); // off by default! #ifndef ESP8266 // Sadly not on ESP8266 boolean usingInterrupt = false; -void useInterrupt(boolean); // Func prototype keeps Arduino 0023 happy #endif void setup() @@ -102,8 +98,3 @@ void useInterrupt(boolean v) { } } #endif // ESP8266 - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_LOCUS_Start/.due.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Start/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Start/.esp32.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Start/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Start/.m4.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Start/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Start/.zero.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Start/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Start/GPS_SoftwareSerial_LOCUS_Start.ino b/examples/GPS_SoftwareSerial_LOCUS_Start/GPS_SoftwareSerial_LOCUS_Start.ino index b0894df..9ed5293 100644 --- a/examples/GPS_SoftwareSerial_LOCUS_Start/GPS_SoftwareSerial_LOCUS_Start.ino +++ b/examples/GPS_SoftwareSerial_LOCUS_Start/GPS_SoftwareSerial_LOCUS_Start.ino @@ -10,9 +10,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -33,7 +30,6 @@ Adafruit_GPS GPS(&mySerial); // off by default! #ifndef ESP8266 // Sadly not on ESP8266 boolean usingInterrupt = false; -void useInterrupt(boolean); // Func prototype keeps Arduino 0023 happy #endif void setup() @@ -107,8 +103,3 @@ void useInterrupt(boolean v) { } } #endif // ESP8266 - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_LOCUS_Status/.due.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Status/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Status/.esp32.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Status/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Status/.m4.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Status/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Status/.zero.test.skip b/examples/GPS_SoftwareSerial_LOCUS_Status/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_LOCUS_Status/GPS_SoftwareSerial_LOCUS_Status.ino b/examples/GPS_SoftwareSerial_LOCUS_Status/GPS_SoftwareSerial_LOCUS_Status.ino index 1d891d3..099482e 100644 --- a/examples/GPS_SoftwareSerial_LOCUS_Status/GPS_SoftwareSerial_LOCUS_Status.ino +++ b/examples/GPS_SoftwareSerial_LOCUS_Status/GPS_SoftwareSerial_LOCUS_Status.ino @@ -10,9 +10,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -33,7 +30,6 @@ Adafruit_GPS GPS(&mySerial); // off by default! #ifndef ESP8266 // Sadly not on ESP8266 boolean usingInterrupt = false; -void useInterrupt(boolean); // Func prototype keeps Arduino 0023 happy #endif void setup() @@ -145,8 +141,3 @@ void useInterrupt(boolean v) { } } #endif // ESP8266 - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/GPS_SoftwareSerial_Parsing/.due.test.skip b/examples/GPS_SoftwareSerial_Parsing/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_Parsing/.esp32.test.skip b/examples/GPS_SoftwareSerial_Parsing/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_Parsing/.m4.test.skip b/examples/GPS_SoftwareSerial_Parsing/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_Parsing/.zero.test.skip b/examples/GPS_SoftwareSerial_Parsing/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/GPS_SoftwareSerial_Parsing/GPS_SoftwareSerial_Parsing.ino b/examples/GPS_SoftwareSerial_Parsing/GPS_SoftwareSerial_Parsing.ino index a835aee..169ef87 100644 --- a/examples/GPS_SoftwareSerial_Parsing/GPS_SoftwareSerial_Parsing.ino +++ b/examples/GPS_SoftwareSerial_Parsing/GPS_SoftwareSerial_Parsing.ino @@ -11,9 +11,6 @@ // Pick one up today at the Adafruit electronics shop // and help support open source hardware & software! -ada -// Only for 328 and ESP8266 -#if defined(__AVR_ATmega328P__) || defined(ESP8266) - #include #include @@ -112,8 +109,3 @@ void loop() // run over and over again } } } - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif diff --git a/examples/shield_sdlog/.due.test.skip b/examples/shield_sdlog/.due.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/shield_sdlog/.esp32.test.skip b/examples/shield_sdlog/.esp32.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/shield_sdlog/.esp8266.test.skip b/examples/shield_sdlog/.esp8266.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/shield_sdlog/.m4.test.skip b/examples/shield_sdlog/.m4.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/shield_sdlog/.zero.test.skip b/examples/shield_sdlog/.zero.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/shield_sdlog/shield_sdlog.ino b/examples/shield_sdlog/shield_sdlog.ino index 4f783ec..7fbff8f 100644 --- a/examples/shield_sdlog/shield_sdlog.ino +++ b/examples/shield_sdlog/shield_sdlog.ino @@ -1,6 +1,3 @@ -// Only for AVR boards with SoftwareSerial -#if defined(__AVR__) - #include #include #include @@ -31,8 +28,9 @@ Adafruit_GPS GPS(&mySerial); // this keeps track of whether we're using the interrupt // off by default! +#ifndef ESP8266 // Sadly not on ESP8266 boolean usingInterrupt = false; -void useInterrupt(boolean); // Func prototype keeps Arduino 0023 happy +#endif // Set the pins used #define chipSelect 10 @@ -133,13 +131,16 @@ void setup() { // the nice thing about this code is you can have a timer0 interrupt go off // every 1 millisecond, and read data from the GPS for you. that makes the // loop code a heck of a lot easier! +#ifndef ESP8266 // Not on ESP8266 useInterrupt(true); +#endif Serial.println("Ready!"); } // Interrupt is called once a millisecond, looks for any new GPS data, and stores it +#ifndef ESP8266 // Not on ESP8266 ISR(TIMER0_COMPA_vect) { char c = GPS.read(); // if you want to debug, this is a good time to do it! @@ -165,6 +166,7 @@ void useInterrupt(boolean v) { usingInterrupt = false; } } +#endif // ESP8266 void loop() { if (! usingInterrupt) { @@ -206,8 +208,3 @@ void loop() { Serial.println(); } } - -#else // Do nothing for other boards - void setup() {} - void loop() {} -#endif