LCD Shield sample. 4.3inch.
Dependencies: GR-PEACH_video mbed-rtos mbed
Fork of GR-PEACH_LCD_sample by
Information
Japanese version is available in lower part of this page.
このページの後半に日本語版が用意されています.
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 AUDIO CAMERA Shield".
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield
このプログラムは、NTSC1AからのNTSC入力をLCDシールドの画面上に表示します。画面をタッチすると、タッチ座標がprintf表示されます。2点まで同時にタッチできます。
GR-PEACH AUDIO CAMERA Shieldを接続すると、CMOSカメラ(MT9V111)の画像を表示することができます。CMOSカメラを使用する場合は、「main.cpp」の以下を変更してください。
main.cpp
#define VIDEO_INPUT_METHOD (VIDEO_CVBS) -> #define VIDEO_INPUT_METHOD (VIDEO_CMOS_CAMERA)
GR-PEACH AUDIO CAMERA Shieldについては下記を参照ください。
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield
Diff: main.cpp
- Revision:
- 4:c1e61a1d75df
- Parent:
- 3:b5aaf7215800
--- a/main.cpp Thu Apr 07 07:28:19 2016 +0000 +++ b/main.cpp Tue Apr 19 02:42:13 2016 +0000 @@ -109,7 +109,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;