/* Set the Back Color */
OLED_SetBackColor(Blue);
/* Set the Text Color */
OLED_SetTextColor(White);
if(MSD_Init() != 0x00)
{
OLED_DisplayStringLine(Line0, "Warning ");
OLED_DisplayStringLine(Line1, " NO ");
OLED_DisplayStringLine(Line2, "SD Card ");
OLED_DisplayStringLine(Line3, "Pres SEL");
/* Loop until SEL key pressed */
while(ReadKey() != SEL)
{
}
}
else
{
Get_Medium_Characteristics();
OLED_Clear(White);
/* Display the " Plug the USB " message */
OLED_DisplayStringLine(Line1, " Plug ");
OLED_DisplayStringLine(Line2, "USB Cable");
/* Intialize the USB cell */
USB_Init();
//OLED_ClearLine(Line9);
/* Display the "To stop Press SEL" message */
//OLED_DisplayStringLine(Line8, " To stop Press SEL ");
/* Loop until SEL key pressed */
while(ReadKey() != SEL)
{
}
PowerOff();
}
OLED_Clear(White);
//DisplayMenu();
IntExtOnOffConfig(ENABLE);
/* Flush SPI1 Data Register */
SPI_ReceiveData(SPI1);
}