I have written a small Arduino library for the DSA protocol used to control the CD-Pro2 unit. An example sketch is included to control you CD-Pro by serial commands.
You will find the DSA library on GitHub.
You will find the DSA library on GitHub.
hello
thank you sharing the library,
I am newbie in arduino, and I would use with a graphic display.
can you give me some examples so I can understand your libairie?😕
thank you very much 🙂
cordially
thank you sharing the library,
I am newbie in arduino, and I would use with a graphic display.
can you give me some examples so I can understand your libairie?😕
thank you very much 🙂
cordially
There is an example program included in the library. Since you are new to the Arduino it might be best to start out by playing with some LEDs, buttons and a display connecting to the Arduino and program some sketches. After that take a look at the example code and try to figure out how to make it work for you.
The library is really basic.
A basic CD player program/sketch would have a short (main) loop(). In this loop you check if one of your control buttons (PLAY, PAUSE, NEXT ...) is pushed and you check if the CD-Pro likes to talk to you (transmitRequested()).
If a control button is pressed, send the matching command to the CD-Pro (sendMessage(opcode, parameter)).
If the CD-Pro likes to talk to you, get the message (receiveMessage(&opcode, ¶meter)) and update your display.
That would be the bare minimal to get started.
The library is really basic.
- sendMessage(opcode, parameter) sends a command to the CD-Pro.
- transmitRequested() checkes if the CD-Pro likes to tell you something.
- receiveMessage(&opcode, ¶meter) gets the message from the CD-Pro
A basic CD player program/sketch would have a short (main) loop(). In this loop you check if one of your control buttons (PLAY, PAUSE, NEXT ...) is pushed and you check if the CD-Pro likes to talk to you (transmitRequested()).
If a control button is pressed, send the matching command to the CD-Pro (sendMessage(opcode, parameter)).
If the CD-Pro likes to talk to you, get the message (receiveMessage(&opcode, ¶meter)) and update your display.
That would be the bare minimal to get started.
Last edited:
- Status
- Not open for further replies.