MARMEX_VB test application program. This application works on "mbed NXP LPC1768" only. This application expects to have the MARMEX_VB module on a "MAPLE mini type-B (MARM03-BASE)" baseboard (slot2) with MARMEX_OB module (on slot1)

Dependencies:   MARMEX_VB NokiaLCD mbed

This is the library test program.
The program can test features of the library (refer to MARMEX-VB's API document) and can save captured data into BMP file.

Warning!

This test program can run on "mbed NXP LPC1768" only.

/media/uploads/nxpfan/dsc_0506_-1-.jpg
Picture : sample of test program operation
The modules of MARMEX-VB and MARMEX-OB are set on the "MAPLE mini type-B (MARM03-BASE)" baseboard.
The image data from camera is mirrored and alpha graphics added by software.

Revision:
6:b61b876d50a8
Parent:
1:dbe2dc31542d
Child:
7:125538c50c22
--- a/main.cpp	Mon Jun 16 14:03:10 2014 +0000
+++ b/main.cpp	Wed Jun 18 06:44:44 2014 +0000
@@ -16,11 +16,23 @@
 #include    "MARMEX_VB.h"
 #include    "bmp_handler.h"
 
+//  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( LED4, LED3, LED2, LED1 );
 Timer           timer;