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

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Tue Apr 19 02:35:27 2016 +0000
Parent:
0:47ea8de0be6c
Commit message:
Supports IAR.

Changed in this revision

GR-PEACH_video.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 47ea8de0be6c -r b5ce15bc386d GR-PEACH_video.lib
--- a/GR-PEACH_video.lib	Thu Oct 01 08:54:48 2015 +0000
+++ b/GR-PEACH_video.lib	Tue Apr 19 02:35:27 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/Renesas/code/GR-PEACH_video/#fe90cfd5fe25
+http://developer.mbed.org/teams/Renesas/code/GR-PEACH_video/#3149baf7925b
diff -r 47ea8de0be6c -r b5ce15bc386d main.cpp
--- 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;
diff -r 47ea8de0be6c -r b5ce15bc386d mbed-rtos.lib
--- a/mbed-rtos.lib	Thu Oct 01 08:54:48 2015 +0000
+++ b/mbed-rtos.lib	Tue Apr 19 02:35:27 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#9d001ed5feec
+http://mbed.org/users/mbed_official/code/mbed-rtos/#bdd541595fc5
diff -r 47ea8de0be6c -r b5ce15bc386d mbed.bld
--- a/mbed.bld	Thu Oct 01 08:54:48 2015 +0000
+++ b/mbed.bld	Tue Apr 19 02:35:27 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file