I have connected LEDs and speakers to the Spresense+LTE expansion board+acceleration sensor configuration.
In order to use GPS (GNSS) and Audio, an error occurred during initialization and could not be initialized.
After trying various combinations, when I initialized GPS and Audio together, I got an error.
I'd like to use GPS and Audio at the same time. Is there a way to deal with this?
The code we created for verification is as follows.
With this information, an error occurred during the initialization of the Audio and the initialization could not be performed.
#include<GNSS.h>
# include <Audio.h>
SpGnss Gnss;
AudioClass* myAudio;
void setup() {
Serial.begin (115200);
while(!Serial);
if(Gnss.begin()){
puts("Gnss begin error");
} else{
Gnss.select (GPS);
Gnss.select(QZ_L1CA);
Gnss.select(QZ_L1S);
if(Gnss.start(COLD_START)){
puts("Gnss start error");
} else{
puts("Gnss setup done";
}
}
myAudio=AudioClass:getInstance();
myAudio->begin();
}
void loop() {
}
This time, v2.1.0
is released.https://github.com/sonydevworld/spresense-arduino-compatible/releases/tag/v2.1.0
In the
[GNSS/Audio] Fixed an issue that could cause audio errors while running simultaneously with GNSS.
So the latest version seems to have improved.
© 2024 OneMinuteCode. All rights reserved.