include idf-dfplaymini component and add basic audio functionality
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
b56ad43a59
commit
049de947fd
5 changed files with 11 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
|||
[submodule "components/esp32-lora"]
|
||||
path = components/esp32-lora
|
||||
url = https://gitlab.com/morganrallen/esp32-lora.git
|
||||
[submodule "components/idf-dfplayermini"]
|
||||
path = components/idf-dfplayermini
|
||||
url = git@git.oit.cloud:morgan/idf-dfplayermini.git
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
project(barback)
|
||||
|
|
1
components/idf-dfplayermini
Submodule
1
components/idf-dfplayermini
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7ec406c5af692b9c99ae9ed0c7fb5ba648a0a71e
|
|
@ -6,5 +6,6 @@ set(COMPONENT_SRCS "\
|
|||
user_button.c\
|
||||
")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". ../include")
|
||||
set(REQUIRES idf-dfplayermini)
|
||||
|
||||
register_component()
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "ble.h"
|
||||
#include "user_button.h"
|
||||
#include "pumps.h"
|
||||
#include "dfplayermini.h"
|
||||
|
||||
static const char *TAG = "BARBACK";
|
||||
|
||||
|
@ -42,6 +43,10 @@ void app_main(void) {
|
|||
char *name = malloc(strlen(TAG) + 4);
|
||||
sprintf(name, "%s-%02X", TAG, mac[5]);
|
||||
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
|
||||
dfplayermini_init();
|
||||
|
||||
user_button_init();
|
||||
pumps_init();
|
||||
ble_init(name);
|
||||
|
|
Loading…
Reference in a new issue