fix: fixed repeat and gain for small speaker

This commit is contained in:
2021-09-29 09:16:39 +02:00
parent 5a745f5bd7
commit c601835dcb
4 changed files with 8 additions and 2 deletions

1
.gitmodules vendored
View File

@@ -9,3 +9,4 @@
[submodule "FW/m5stack_audio/lib/RFID.MFRC522"] [submodule "FW/m5stack_audio/lib/RFID.MFRC522"]
path = FW/m5stack_audio/lib/RFID.MFRC522 path = FW/m5stack_audio/lib/RFID.MFRC522
url = http://192.168.2.3/Bonobo.Git.Server/RFID.MFRC522.git url = http://192.168.2.3/Bonobo.Git.Server/RFID.MFRC522.git
branch = master

View File

@@ -44,3 +44,8 @@ libraries scanning project source files.
More information about PlatformIO Library Dependency Finder More information about PlatformIO Library Dependency Finder
- https://docs.platformio.org/page/librarymanager/ldf.html - https://docs.platformio.org/page/librarymanager/ldf.html
update submodules force
$git submodule update --init --force --remote

View File

@@ -82,7 +82,7 @@ void handleAudio()
if (!mp3->loop()) if (!mp3->loop())
{ {
//mp3->stop(); //mp3->stop();
if(n++ > AUDIOREPEATS) if(n++ >= AUDIOREPEATS)
{ {
i++; i++;
n= 0; n= 0;

View File

@@ -7,7 +7,7 @@
#include "AudioFileSourceID3.h" #include "AudioFileSourceID3.h"
#include "AudioOutputI2S.h" #include "AudioOutputI2S.h"
#define AUDIOGAIN 0.1 #define AUDIOGAIN 1
#define AUDIONSONGS 3 #define AUDIONSONGS 3
#define AUDIOREPEATS 3 #define AUDIOREPEATS 3