Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "BluetoothA2DPSink.h"
- BluetoothA2DPSink a2dp_sink;
- void setup() {
- i2s_pin_config_t my_pin_config = {
- .bck_io_num = 27,
- .ws_io_num = 26,
- .data_out_num = 25,
- .data_in_num = I2S_PIN_NO_CHANGE
- };
- a2dp_sink.set_pin_config(my_pin_config);
- a2dp_sink.set_auto_reconnect(true);
- a2dp_sink.start("MyMusic");
- }
- void loop() {
- delay(60000); // do nothing
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement