Video image display and touch panel sample for GR-PEACH LCD Shield.
Homepage
Information
Japanese version is available in lower part of this page.
このページの後半に日本語版が用意されています.
Information
This sample has multiple frame buffers so that the clock source can display different cameras and LCDs cleanly. If you are using the NTSC signal, the following sample is simpler.
このサンプルはクロック元が異なるカメラとLCDを綺麗に表示するために、複数のフレームバッファを持っています。NTSC信号を使用するのであれば、以下のサンプルの方が単純です。
https://developer.mbed.org/users/dkato/code/GR-PEACH_NTSC_in_2ch/
What is this ?¶
The basic function of the GR-PEACH LCD Shield can be tried by this sample.
Display the information of the touch panel on the camera image.
A character font is shown to the screen lower right every 1 second.
Touch panel information¶
The touch location of the blue and the 2nd point becomes pink in the 1st touch location in case of a multi-touch.
While touching the screen, a white square in the upper left corner of the screen will be displayed.
Touch information is being output in printf. When doing terminal designation, please set 230400 as a baud rate.
Composition¶
GR-PEACH, GR-PEACH 4.3 inch LCD Shield or GR-PEACH 7.1 inch LCD Shield, GR-PEACH AUDIO CAMERA Shield and Camera.
When using analog input for video input, GR-PEACH AUDIO CAMERA Shield and the camera are unnecessary.
(Setting the VIDEO_CVBS to VIDEO_INPUT_METHOD)
Please input analog signal to NTSC1A pin. (Even if there are no input signals, a touch panel can be operated.).
Video input of default is a digital input (Cmos Camera). When changing the video input, please change the below.
mbed_app.json
{ "config": { "camera":{ "help": "0:disable 1:enable", "value": "1" }, "camera-type":{ "help": "Please see README.md", "value": "CAMERA_CVBS" }, "lcd":{ "help": "0:disable 1:enable", "value": "1" }, "lcd-type":{ "help": "Please see README.md", "value": "GR_PEACH_4_3INCH_SHIELD" } } }
camera-type "value" | Description |
---|---|
CAMERA_CVBS | GR-PEACH NTSC signal |
CAMERA_MT9V111 | GR-PEACH MT9V111 |
CAMERA_OV7725 | GR-LYHCEE included camera |
CAMERA_OV5642 | GR-PEACH OV5642 |
CAMERA_WIRELESS_CAMERA | GR-PEACH Wireless/Camera shield (MT9V111) |
lcd-type "value" | Description |
---|---|
GR_PEACH_4_3INCH_SHIELD | GR-PEACH 4.3 inch LCD shield |
GR_PEACH_7_1INCH_SHIELD | GR-PEACH 7.1 inch LCD shield |
GR_PEACH_RSK_TFT | GR-PEACH RSK board LCD |
GR_PEACH_DISPLAY_SHIELD | GR-PEACH Display Shield or DVi-Board |
GR_LYCHEE_LCD | GR-LYHCEE TF043HV001A0..etc(40pin) |
概要¶
このサンプルではGR-PEACH LCD Shieldの基本的な機能を試せます。
カメラ画像の上にタッチパネルの情報を重ねて表示します。
文字フォントが右下に1秒毎に表示されます。
タッチパネルの情報¶
マルチタッチの場合は1点目のタッチ位置は青、2点目のタッチ位置はピンクになります。
画面がタッチされている間、画面左上に白い四角が表示されます。
printfでもタッチ情報を出力しています。ターミナル表示を行う際は、ボーレートに230400を設定してください。
構成¶
GR-PEACH、GR-PEACH 4.3 inch LCD Shield または GR-PEACH 7.1 inch LCD Shield、GR-PEACH AUDIO CAMERA Shield 、カメラ。
ビデオ入力にアナログ入力を使用する場合はGR-PEACH AUDIO CAMERA Shield とカメラは不要です。
(VIDEO_INPUT_METHOD にVIDEO_CVBS を設定)
NTSC1Aピンにアナログ信号を入力してください。(入力信号が無くてもタッチパネルは操作できます。)
デフォルトのビデオ入力はデジタル入力(Cmos Camera)です。ビデオ入力を変更する際は以下を変更してください。
mbed_app.json
{ "config": { "camera":{ "help": "0:disable 1:enable", "value": "1" }, "camera-type":{ "help": "Please see README.md", "value": "CAMERA_CVBS" }, "lcd":{ "help": "0:disable 1:enable", "value": "1" }, "lcd-type":{ "help": "Please see README.md", "value": "GR_PEACH_4_3INCH_SHIELD" } } }
camera-type "value" | Description |
---|---|
CAMERA_CVBS | GR-PEACH NTSC signal |
CAMERA_MT9V111 | GR-PEACH MT9V111 |
CAMERA_OV7725 | GR-LYHCEE included camera |
CAMERA_OV5642 | GR-PEACH OV5642 |
CAMERA_WIRELESS_CAMERA | GR-PEACH Wireless/Camera shield (MT9V111) |
lcd-type "value" | Description |
---|---|
GR_PEACH_4_3INCH_SHIELD | GR-PEACH 4.3 inch LCD shield |
GR_PEACH_7_1INCH_SHIELD | GR-PEACH 7.1 inch LCD shield |
GR_PEACH_RSK_TFT | GR-PEACH RSK board LCD |
GR_PEACH_DISPLAY_SHIELD | GR-PEACH Display Shield or DVi-Board |
GR_LYCHEE_LCD | GR-LYHCEE TF043HV001A0..etc(40pin) |