Saturday, October 17, 2009

Advanced iPod Remote Code

This is the code that puts the iPod into Advanced Remote mode so far that is all it does. We need to figure out how to send Play/Pause etc after it is in Advanced Remote Mode.

// array strings to tell the iPod what to do
const char AIR[] = {
0xFF, 0x55, 0x03, 0x00, 0x01, 0x04, 0xF8};
const char AIR_PLAY[] = {
0xFF, 0x55, 0x03, 0x00, 0x29, 0x01, 0xD3};
void setup()
Serial.begin(19200); // Setup the serial port
delay(5000); // 5 second delay so we can plug in the ipod
AIRR(); // calls the AIRR function


void loop()
// nothing in the loop but it is still needed

void AIRR(){
for (int i = 0; i < 9; i++) { // puts ipod in AIR mode
Serial.print(AIR[i], BYTE);

void AIRR_PLAY(){
for (int s = 0; s < 9; s++) { // Send Play/Pause command in AIR
Serial.print(AIR_PLAY[s], BYTE);

No comments:

Post a Comment