Skip to content

Commit d803c92

Browse files
authored
Merge pull request #79 from sparkfun/ESP32_v2.0.1_Debug
Merge Esp32 v2.0.1 Debug
2 parents 3fd4d2a + 6ece531 commit d803c92

File tree

16 files changed

+1109
-799
lines changed

16 files changed

+1109
-799
lines changed

Diff for: .github/workflows/compile-sketch.yml

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
name: Compile Sketch
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
8+
jobs:
9+
compile-sketch:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
15+
matrix:
16+
board:
17+
# Uno
18+
# https://github.com/arduino/ArduinoCore-avr/blob/master/boards.txt
19+
- fqbn: arduino:avr:uno
20+
platforms: |
21+
- name: arduino:avr
22+
source-url: https://downloads.arduino.cc/packages/package_index.json
23+
24+
# ESP32
25+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
26+
- fqbn: esp32:esp32:esp32
27+
platforms: |
28+
- name: esp32:esp32
29+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
30+
31+
# ESP32-S2
32+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
33+
- fqbn: esp32:esp32:esp32s2
34+
platforms: |
35+
- name: esp32:esp32
36+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
37+
38+
# ESP32-C3
39+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
40+
- fqbn: esp32:esp32:esp32c3
41+
platforms: |
42+
- name: esp32:esp32
43+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
44+
45+
# Artemis / Apollo3
46+
# https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt
47+
- fqbn: SparkFun:apollo3:sfe_artemis_atp
48+
platforms: |
49+
- name: SparkFun:apollo3
50+
source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json
51+
52+
# ESP8266
53+
# https://github.com/esp8266/Arduino/blob/master/boards.txt
54+
- fqbn: esp8266:esp8266:thingdev
55+
platforms: |
56+
- name: esp8266:esp8266
57+
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
58+
59+
# SAMD21
60+
# https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt
61+
- fqbn: arduino:samd:mkr1000
62+
platforms: |
63+
- name: arduino:samd
64+
# source-url: https://downloads.arduino.cc/packages/package_index.json
65+
66+
# Nano BLE 33 / nRF52840
67+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
68+
- fqbn: arduino:mbed:nano33ble
69+
platforms: |
70+
- name: arduino:mbed
71+
# source-url: https://downloads.arduino.cc/packages/package_index.json
72+
73+
# RP2040
74+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
75+
- fqbn: rp2040:rp2040:sparkfun_promicrorp2040
76+
platforms: |
77+
- name: rp2040:rp2040
78+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
79+
80+
# STM32
81+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
82+
- fqbn: STMicroelectronics:stm32:GenF1
83+
platforms: |
84+
- name: STMicroelectronics:stm32
85+
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
86+
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v2
90+
91+
- name: Compile Sketch
92+
uses: arduino/compile-sketches@v1
93+
with:
94+
platforms: ${{ matrix.board.platforms }}
95+
fqbn: ${{ matrix.board.fqbn }}
96+
libraries: |
97+
- source-url: https://github.com/${{github.repository}}.git
98+
sketch-paths: |
99+
- examples/Example10_AltitudeMSL
100+
- examples/Example11_ResetModule/Example1_FactoryDefaultviaI2C
101+
- examples/Example13_PVT/Example1_AutoPVT
102+
- examples/Example13_PVT/Example2_AutoPVT_ExplicitUpdate
103+
- examples/Example14_DebugOutput
104+
- examples/Example15_GetDateTime
105+
- examples/Example16_Nanosecond_MaxOutput
106+
- examples/Example16_PartialSecond_MaxOutput
107+
- examples/Example18_PowerSaveMode
108+
- examples/Example19_DynamicModel
109+
- examples/Example20_SendCustomCommand
110+
enable-warnings-report: true
111+
# verbose: true
112+
113+
# outputs:
114+
# report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }}
115+

Diff for: examples/Dead_Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
#include <SparkFun_u-blox_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_u-blox_GNSS
3232
SFE_UBLOX_GNSS myGNSS;
3333

34-
boolean usingAutoHNRAtt = false;
35-
boolean usingAutoHNRDyn = false;
36-
boolean usingAutoHNRPVT = false;
34+
bool usingAutoHNRAtt = false;
35+
bool usingAutoHNRDyn = false;
36+
bool usingAutoHNRPVT = false;
3737

3838
void setup()
3939
{

Diff for: examples/Example17_Geofence/Example17_Geofence.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void loop()
121121
{
122122
geofenceState currentGeofenceState; // Create storage for the geofence state
123123

124-
boolean result = myGNSS.getGeofenceState(currentGeofenceState);
124+
bool result = myGNSS.getGeofenceState(currentGeofenceState);
125125

126126
Serial.print(F("getGeofenceState returned: ")); // Print the combined state
127127
Serial.print(result); // Get the geofence state

Diff for: examples/Example21_ModuleInfo/Example21_ModuleInfo.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class SFE_UBLOX_GPS_ADD : public SFE_UBLOX_GNSS
4646
{
4747
public:
48-
boolean getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts
48+
bool getModuleInfo(uint16_t maxWait = 1100); //Queries module, texts
4949

5050
struct minfoStructure // Structure to hold the module info (uses 341 bytes of RAM)
5151
{
@@ -115,7 +115,7 @@ void loop()
115115
{
116116
}
117117

118-
boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait)
118+
bool SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait)
119119
{
120120
myGNSS.minfo.hwVersion[0] = 0;
121121
myGNSS.minfo.swVersion[0] = 0;

Diff for: examples/Example8_GetProtocolVersion_Serial/Example8_GetProtocolVersion_Serial.ino

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131

3232
#include <SoftwareSerial.h>
3333

34-
#define mySerial Serial1 // Uncomment this line to connect via Serial1
34+
//#define mySerial Serial1 // Uncomment this line to connect via Serial1
3535
// - or -
3636
//SoftwareSerial mySerial(10, 11); // Uncomment this line to connect via SoftwareSerial(RX, TX). Connect pin 10 to GNSS TX pin.
37+
// - or -
38+
#define mySerial Serial // Uncomment this line if you just want to keep using Serial
3739

3840
#include <SparkFun_u-blox_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_u-blox_GNSS
3941
SFE_UBLOX_GNSS myGNSS;

Diff for: examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup()
4949
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
5050
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
5151

52-
boolean response = true;
52+
bool response = true;
5353
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
5454
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1077, COM_PORT_I2C, 1);
5555
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1087, COM_PORT_I2C, 1);

Diff for: examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setup()
5353
Serial.println(F("Press any key to send commands to begin Survey-In"));
5454
while (Serial.available() == 0) ; //Wait for user to press a key
5555

56-
boolean response;
56+
bool response;
5757

5858
//Check if Survey is in Progress before initiating one
5959
// From v2.0, the data from getSurveyStatus (UBX-NAV-SVIN) is returned in UBX_NAV_SVIN_t packetUBXNAVSVIN

Diff for: examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void setup()
7272
// Please see u-blox_structs.h for the full definition of UBX_NAV_SVIN_t
7373
// You can either read the data from packetUBXNAVSVIN directly
7474
// or can use the helper functions: getSurveyInActive; getSurveyInValid; getSurveyInObservationTime; and getSurveyInMeanAccuracy
75-
boolean response;
75+
bool response;
7676
response = myGNSS.getSurveyStatus(2000); //Query module for SVIN status with 2000ms timeout (request can take a long time)
7777
if (response == false)
7878
{

Diff for: examples/ZED-F9P/Example12_setStaticPosition/Example12_setStaticPosition.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void setup()
4747

4848
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
4949

50-
boolean success = true;
50+
bool success = true;
5151

5252
//-1280208.308,-4716803.847,4086665.811 is SparkFun HQ so...
5353

Diff for: examples/ZED-F9P/Example3_StartRTCMBase/Example3_StartRTCMBase.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setup()
6161
Serial.println(F("Press any key to send commands to begin Survey-In"));
6262
while (Serial.available() == 0) ; //Wait for user to press a key
6363

64-
boolean response = true;
64+
bool response = true;
6565
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
6666
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1);
6767
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1);

Diff for: examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void setup()
7373
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX sentences (turn off NMEA noise)
7474
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save the communications port settings to flash and BBR
7575

76-
boolean response = true;
76+
bool response = true;
7777
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1005, COM_PORT_I2C, 1); //Enable message 1005 to output through I2C port, message every second
7878
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1074, COM_PORT_I2C, 1);
7979
response &= myGNSS.enableRTCMmessage(UBX_RTCM_1084, COM_PORT_I2C, 1);

Diff for: keywords.txt

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ setI2CpollingWait KEYWORD2
5656
setSPIpollingWait KEYWORD2
5757
setI2CTransactionSize KEYWORD2
5858
getI2CTransactionSize KEYWORD2
59+
setI2cStopRestart KEYWORD2
60+
getI2cStopRestart KEYWORD2
5961
setSpiTransactionSize KEYWORD2
6062
getSpiTransactionSize KEYWORD2
6163
setMaxNMEAByteCount KEYWORD2

Diff for: library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun u-blox GNSS Arduino Library
2-
version=2.0.17
2+
version=2.0.18
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for I2C and Serial Communication with u-blox GNSS modules<br/><br/>

0 commit comments

Comments
 (0)