CD-Pro2M/LF controlled by Arduino

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
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.
  • sendMessage(opcode, parameter) sends a command to the CD-Pro.
  • transmitRequested() checkes if the CD-Pro likes to tell you something.
  • receiveMessage(&opcode, &parameter) 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, &parameter)) and update your display.

That would be the bare minimal to get started.
 
Last edited:
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.