2
« by Dscrimager on December 29, 2008, 12:57:45 PM »
...... have my uMP3 player working: I am using the regular rprintf ............ successfully and under control: Call init_uMP3(void) to start it up. Call play_track to play the ............ (2); temp = uart0GetByte(); if(temp == uMP3READY) return TRUE; for(int j = 0; ((j < 20) && ............ (2); temp=uart0GetByte(); if(temp == uMP3READY) return TRUE; } } return FALSE; } ............ (); //rprintf("temp = %d\r\n",temp); if(temp == uMP3READY) return TRUE; for(int j = 0; ((j < 20) && ( ............ != uMP3READY)); ++j) { delay_ms(2); temp = ............ /rprintf("temp final = %d\r\n",temp); if(temp == uMP3READY) return TRUE; return FALSE; } int ............ rprintf rprintf("PC Z\r"); // get status from uMP3 rprintfInit(uart1SendByte); temp=uart0GetByte(); ............ (); } return FALSE; } void init_uMP3(void) { //int temp; uMP3init = FALSE; for( ............ { if(wait_for_ready()) //if(temp == uMP3READY) { rprintf("uMP3 ready\r\n"); // ............ ); rprintfInit(uart0SendByte);//change UART to uMP3 rprintf("ST V "); // set volume to maximum ............ ); if(consume_to_ready()) { uMP3init = TRUE; rprintf("uMP3 ready!\r\n"); ............ \r\n"); } } else { rprintf("uMP3 NOT ready\r\n"); } delay_ms(250); } // ............ void play_track(char preamble, int track) { if(uMP3init == TRUE) { rprintf("Playing track %c", ............ ); rprintf("%d.mp3\r\n",track); rprintfInit(uart0SendByte);// ............ UART to uMP3 rprintf("PC F /"); // play track on uMP3 ............ ("%c%d.MP3\r", preamble, track); rprintfInit(uart1SendByte) ............ ; } else rprintf("uMP3 not initalized\r\n"); } ......