SD demo

Dependencies:   BSP_DISCO_F413ZH mbed

Revision:
1:8973a7ad5524
Parent:
0:7708007ed23b
Child:
2:db8dcfc87a4a
--- a/main.cpp	Wed May 17 16:14:29 2017 +0200
+++ b/main.cpp	Wed May 17 16:25:04 2017 +0200
@@ -21,15 +21,18 @@
     SD_state = BSP_SD_Init();
  
     if (SD_state != MSD_OK) {
+        BSP_LCD_SetFont(&Font12);
         BSP_LCD_DisplayStringAt(0, 0, (uint8_t *)"Inserte SD before running test", CENTER_MODE);
  
     } else {
+        BSP_LCD_SetFont(&Font12);
         BSP_LCD_DisplayStringAt(20, 100, (uint8_t *)"SD Initialization : OK", LEFT_MODE);
  
         SD_state = BSP_SD_Erase(0, (BLOCKSIZE * 50));
         /* Wait until SD card is ready to use for new operation */
         while(BSP_SD_GetCardState() != SD_TRANSFER_OK) {
         }
+        BSP_LCD_SetFont(&Font16);
         if (SD_state != MSD_OK) {
             BSP_LCD_DisplayStringAt(20, 130, (uint8_t *)"SD ERASE : FAILED.", LEFT_MODE);
         } else {