LCD Shield sample

Dependencies:   GR-PEACH_video mbed-rtos mbed

This program displays the NTSC input from NTSC1A of LCD Shield on the screen. Touch coordinates are displayed on the terminal when you touch the screen. You can touch at the same time up to 2 points.

When you connect the "GR-PEACH AUDIO CAMERA Shield", you can display an image of the CMOS Camera(MT9V111).
If you use CMOS Camera, Please change the below in the “main.cpp”.

main.cpp

#define VIDEO_INPUT_METHOD     (VIDEO_CVBS)
->
#define VIDEO_INPUT_METHOD     (VIDEO_CMOS_CAMERA)


Please refer to following link about "GR-PEACH LCD Shield".
https://developer.mbed.org/teams/Renesas/wiki/LCD-shield

Please refer to following link about "GR-PEACH AUDIO CAMERA Shield".
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield

Revision:
1:b5ce15bc386d
Parent:
0:47ea8de0be6c
--- a/main.cpp	Thu Oct 01 08:54:48 2015 +0000
+++ b/main.cpp	Tue Apr 19 02:35:27 2016 +0000
@@ -93,7 +93,13 @@
 }
 #endif
 
+#if defined(__ICCARM__)
+#pragma data_alignment=16
+static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]@ ".mirrorram";  //16 bytes aligned!;
+#pragma data_alignment=4
+#else
 static uint8_t FrameBuffer_Video[VIDEO_BUFFER_STRIDE * VIDEO_BUFFER_HEIGHT]__attribute((section("NC_BSS"),aligned(16)));  //16 bytes aligned!;
+#endif
 static volatile int32_t vsync_count = 0;
 static volatile int32_t vfield_count = 1;
 static int image_change = 0;