Skip to content

Commit 56d7614

Browse files
authored
Merge pull request #25 from gpstar81/vtables
Update to the example sketch.
2 parents 1722a82 + d31dda8 commit 56d7614

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

examples/BasicExample/BasicExample.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232

3333
#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.
3536

3637
#include <GPStarAudio.h>
3738
gpstarAudio gpstar;
@@ -45,18 +46,19 @@ void setup() {
4546

4647
// 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.
4748

48-
AltSoftSerial.begin(57600); // When using AltSoftSerial.
49-
gpstar.start(AltSoftSerial);
49+
altSerial.begin(57600); // When using AltSoftSerial.
50+
gpstar.start(altSerial);
5051

5152
//Serial3.begin(57600); // When using hardware serial. Pick the serial port you want to use.
5253
//gpstar.start(Serial3);
54+
Serial.begin(9600); // When using hardware serial. Pick the serial port you want to use.
5355

5456
delay(10);
5557

5658
// Allow time for hello command and other data to respond.
5759
gpstar.hello();
5860

59-
delay(350);
61+
delay(400);
6062

6163
if(gpstar.gpstarAudioHello()) {
6264
// Stop all tracks.
@@ -135,4 +137,4 @@ void loop() {
135137

136138
delay(5000);
137139
}
138-
}
140+
}

src/GPStarAudio.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ void gpstarAudio::update(void) {
128128
break;
129129

130130
case RSP_TRACK_REPORT:
131-
// WT.
132131
track = rxMessage[2];
133132
track = (track << 8) + rxMessage[1] + 1;
134133
voice = rxMessage[3];

0 commit comments

Comments
 (0)