You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/BasicExample/BasicExample.ino
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@
31
31
32
32
33
33
#include<AltSoftSerial.h>// When using AltSoftSerial.
34
-
//#include <HardwareSerial.h> // When using hardware serial.
34
+
AltSoftSerial altSerial;
35
+
#include<HardwareSerial.h>// When using hardware serial.
35
36
36
37
#include<GPStarAudio.h>
37
38
gpstarAudio gpstar;
@@ -45,18 +46,19 @@ void setup() {
45
46
46
47
// Please note: GPStar Audio uses 57600 baudrate by default. You can configure this by adding the setting to the Micro SD Card ini configuration file. Please see the README.MD file for more information.
47
48
48
-
AltSoftSerial.begin(57600); // When using AltSoftSerial.
49
-
gpstar.start(AltSoftSerial);
49
+
altSerial.begin(57600); // When using AltSoftSerial.
50
+
gpstar.start(altSerial);
50
51
51
52
//Serial3.begin(57600); // When using hardware serial. Pick the serial port you want to use.
52
53
//gpstar.start(Serial3);
54
+
Serial.begin(9600); // When using hardware serial. Pick the serial port you want to use.
53
55
54
56
delay(10);
55
57
56
58
// Allow time for hello command and other data to respond.
0 commit comments