diff --git a/src/bluetooth/bluetooth.cpp b/src/bluetooth/bluetooth.cpp new file mode 100644 index 0000000..b9442e5 --- /dev/null +++ b/src/bluetooth/bluetooth.cpp @@ -0,0 +1,33 @@ +/* + * bluetooth + * + * see: esp-idf example bluetooth/a2dp_sink + */ + +#include +#include +#include +#include +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +//#include "nvs.h" +//#include "nvs_flash.h" +#include "esp_system.h" +#include "esp_log.h" + +#include "bt.h" + +#include "bluetooth.h" + +using namespace std; + + +Bluetooth::Bluetooth() { +} + +void Bluetooth::init() { +} + + +void Bluetooth::end() { +} diff --git a/src/bluetooth/bluetooth.h b/src/bluetooth/bluetooth.h new file mode 100644 index 0000000..74babce --- /dev/null +++ b/src/bluetooth/bluetooth.h @@ -0,0 +1,15 @@ +#ifndef _BLUETOOTH_H +#define _BLUETOOTH_H + +#include "hardware.h" + + +class Bluetooth { + public: + Bluetooth(); + void init(); + void end(); + private: +}; + +#endif /* _BLUETOOTH_H */ diff --git a/src/main.cpp b/src/main.cpp index 2e1ef90..5e50452 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,6 +20,7 @@ Keyboard keyboard; SDCard sdcard; Sound sound; Wifi wifi; +Bluetooth bluetooth; static const char *soundFile[3][3] = {{"/T0.wav", "/T1.wav", "/T2.wav"}, {"/T3.wav", "/T4.wav", "/T5.wav"}, diff --git a/src/soundboard.h b/src/soundboard.h index 696a2f5..72242c7 100644 --- a/src/soundboard.h +++ b/src/soundboard.h @@ -7,6 +7,7 @@ #include "sdcard.h" #include "sound.h" #include "wifi.h" +#include "bluetooth/bluetooth.h" #define WIFI_SSID "ssid" #define WIFI_PASSWORD "password" @@ -15,6 +16,7 @@ extern Keyboard keyboard; extern SDCard sdcard; extern Sound sound; extern Wifi wifi; +extern Bluetooth bluetooth; #endif /* _SOUNDBOARD_H */