MY TRAIAL (1)

Dependencies:   FATFileSystem GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP mbed-rtos mbed

Fork of GR-PEACH_NTSC_in_2ch_MOD_try by Hirofumi Inomata

I put an OVERVIEW in the blow URL. https://developer.mbed.org/users/digiponta/notebook/my-trial-ar--vr-2-eyes-display-goes-by-a-gr-peach/

Revision:
7:2fb4359e5ea6
Parent:
6:3cb7758c3f17
Child:
8:0f9a45e34220
--- a/main.cpp	Wed Sep 14 10:53:51 2016 +0000
+++ b/main.cpp	Wed Sep 14 12:36:30 2016 +0000
@@ -301,7 +301,7 @@
     DisplayBase::graphics_error_t error;
     size_t EncodeSize;
 
-    while( !sd.connected() ) {
+    while( !sd.connect() ) {
          Thread::wait(500);
     }
     
@@ -439,7 +439,10 @@
                 }
             }
             
-            
+            while( !sd.connect() ) {
+                 Thread::wait(500);
+            }
+      
             sprintf( fname, "/sd/img_%04d.jpg", viewCnt++ );
             if ( viewCnt >= imgCnt ) viewCnt = 0;
             pc.printf("File read start %s v=%d, i=%d\n", fname, viewCnt, imgCnt );