Hello everyone! I am currently working on a project in which the title and artist of the current song playing from Bluetooth would be printed on an OLED display. I currently have no clue on how to do that and would like help and some examples. Thanks for your time!
Is the song coming from the bluetooth or stored on the arduino?
Look at the A2DP library. It should have everything you need. One of the library examples has this
#include "BluetoothA2DPSink.h"
...
// Configure metadata callback
a2dp_sink.set_avrc_metadata_callback(avrc_metadata_callback);
From this it's just a matter of parsing a string received.
The song is coming from Bluetooth.
Yes, I know about the example, but I don't know how to parse a string since I never needed to before and I also do not know which string to parse.
The string is also multiple lines.
Guess it's time to learn!
I don't know where to start. ![]()
And also there are not many resources on how to parse multi-linear text.
That's odd. When I googled parsing multi line text just now, I got all kinds of hits.
There may not have been anything that you could just copy and paste and call it done, but there was plenty of things to draw inspiration from.
That's how you get started.
And also, the output also has hexadecimal numbers.
Example:
0x01 SONG_TITLE
So there are hex numbers. What's the problem with that?
I don't want them to pop up on the OLED display.
I am only familiar with the Arduino coding language, I'm pretty sure that it is a modified version of C++. And there are not many resources for that.
Are you seriously stating that there are not many resources for learning how to do (pretty much anything!) in C++? One of the most widely used languages on the planet?
Oh my, thanks, I needed a good laugh today!
Not many resources... chuckle!
Correction: Arduino's version of C++ ![]()
Hint: They are not the same...
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.