A "Hello" program for MARMEX_VB library. This application may work 40pin type mbed platforms ;) This application expects to have the MARMEX_VB module on a "MAPLE mini type-B (MARM03-BASE)" baseboard (slot2) with a MARMEX_OB module (on slot1)

Dependencies:   MARMEX_VB NokiaLCD mbed

Sample code for MARMEX-VB (MARY-VB) camera module.
/media/uploads/nxpfan/dsc_0497s.png

This is a very simple program just copies the data from camera to OELD.
/media/uploads/nxpfan/dsc_0513.jpg

Revision:
2:7294334432d4
Parent:
0:139f0c46d0fd
--- a/main.cpp	Mon Jun 16 14:04:33 2014 +0000
+++ b/main.cpp	Fri Jun 20 09:19:00 2014 +0000
@@ -12,9 +12,24 @@
 #include "MARMEX_OB_oled.h"
 #include "MARMEX_VB.h"
 
-MARMEX_OB_oled  oled1( p5, p7,  p20, p16, p15 );            // mosi, sclk, cs, rst, power_control       -- maple-mini-type-b-board-slot1
-MARMEX_VB       camera( p5, p6, p7, p22, p26, p28, p27 );   // mosi, miso, sclk, cs, reset, sda, scl    -- maple-mini-type-b-board-slot2
-BusOut          led( LED3, LED4 );
+//  Baseboard type selection
+#define BASEBOARD_MAPLE_MINI_TYPE_B
+//#define BASEBOARD_MAPLE_ORIGINAL
+
+#ifdef  BASEBOARD_MAPLE_MINI_TYPE_B
+MARMEX_OB_oled  oled1( p5, p7,  p20, p16, p15 );
+// mosi, sclk, cs, rst, power_control               -- maple-mini-type-b-board-slot1
+MARMEX_VB       camera( p5, p6, p7, p22, p26, p28, p27 );
+// mosi, miso, sclk, cs, reset, sda, scl    -- maple-mini-type-b-board-slot2
+#endif
+
+#ifdef  BASEBOARD_MAPLE_ORIGINAL
+MARMEX_OB_oled  oled1( p5, p7,  p8, p30, p11 );
+// mosi, sclk, cs, rst, power_control               -- maple-board-slot1
+MARMEX_VB       camera( p5, p6, p7, p26, p17, p28, p27 );
+// mosi, miso, sclk, cs, reset, sda, scl    -- maple-board-slot2
+#endif
+//BusOut          led( LED3, LED4 );
 
 //  image size (default image size)
 #define CAMERA_WIDTH    MARMEX_VB::QCIF_PIXEL_PER_LINE  //  176 pixels(default size)
@@ -32,12 +47,10 @@
 {
     short   buf[ OLED_WIDTH ];
 
-    led    = 0x3;
     oled1.cls();    //  clear OLED screen
 
     while ( 1 ) {
 
-        led    = 0x1;
         camera.open_transfer();     //  pause updating the camera buffer
         
         //  data transfer from camera to OLED (line by line copy)
@@ -51,7 +64,6 @@
             oled1.blit565( 0, line, OLED_WIDTH, 1, buf );
         }
 
-        led    = 0x2;
         camera.close_transfer();    //  resume updating the camera buffer
     }
 }