diff --git a/audio/01Elefant.wav b/audio/01Elefant.wav new file mode 100644 index 0000000..97c18dc Binary files /dev/null and b/audio/01Elefant.wav differ diff --git a/audio/01Ramsach_Glocke_v001.wav b/audio/01Ramsach_Glocke_v001.wav new file mode 100644 index 0000000..7ea25f7 Binary files /dev/null and b/audio/01Ramsach_Glocke_v001.wav differ diff --git a/audio/01ramsach_glocke_test.wav b/audio/original/01ramsach_glocke_test.wav similarity index 100% rename from audio/01ramsach_glocke_test.wav rename to audio/original/01ramsach_glocke_test.wav diff --git a/audio/ramsach_glocke_test.mp3 b/audio/original/ramsach_glocke_test.mp3 similarity index 100% rename from audio/ramsach_glocke_test.mp3 rename to audio/original/ramsach_glocke_test.mp3 diff --git a/vscode/RamsachMp3Glocke/platformio.ini b/vscode/RamsachMp3Glocke/platformio.ini index 1a6c099..410fbd6 100644 --- a/vscode/RamsachMp3Glocke/platformio.ini +++ b/vscode/RamsachMp3Glocke/platformio.ini @@ -14,3 +14,6 @@ board = d1_mini_pro framework = arduino monitor_speed = 115200 lib_deps = salvadorrueda/SerialMP3Player@^1.1.0 + +; set frequency to 160MHz +board_build.f_cpu = 80000000L diff --git a/vscode/RamsachMp3Glocke/src/main.cpp b/vscode/RamsachMp3Glocke/src/main.cpp index 378cfb5..57df8b8 100644 --- a/vscode/RamsachMp3Glocke/src/main.cpp +++ b/vscode/RamsachMp3Glocke/src/main.cpp @@ -1,4 +1,5 @@ #include "SerialMP3Player.h" +#include #define TX D3 #define RX D2 @@ -35,15 +36,24 @@ bool button_pressed(unsigned int button_pin){ } void setup() { + Serial.begin(115200); // start serial interface pinMode(BUTTON,INPUT_PULLUP); + WiFi.mode(WIFI_OFF); + WiFi.forceSleepBegin(); + delay(10); + mp3.begin(9600); // start mp3-communication delay(500); // wait for init + + mp3.setVol(25); + delay(500); + mp3.sendCommand(CMD_SEL_DEV, 0, 2); //select sd-card delay(500); // wait for init - mp3.setVol(30); + } // the loop function runs over and over again forever