Skip to content

Latest commit

 

History

History
107 lines (86 loc) · 3.59 KB

File metadata and controls

107 lines (86 loc) · 3.59 KB

Easy Attach Camera And LCD - Easily add all supported Camera and LCD to your mbed OS project

Just declare the desired camera and LCD in your mbed_app.json file, and call EasyAttach_Init() from your application.

Enable camera and LCD

Add the following to your mbed_app.json file:

{
    "config": {
        "camera":{
            "help": "0:disable 1:enable",
            "value": "1"
        },
        "lcd":{
            "help": "0:disable 1:enable",
            "value": "1"
        }
    }
}

Specifying Camera and LCD

Add the following to your mbed_app.json file:

{
    "config": {
        "camera":{
            "help": "0:disable 1:enable",
            "value": "1"
        },
        "camera-type":{
            "help": "Please see EasyAttach_CameraAndLCD/README.md",
            "value": "CAMERA_CVBS"
        },
        "lcd":{
            "help": "0:disable 1:enable",
            "value": "1"
        },
        "lcd-type":{
            "help": "Please see EasyAttach_CameraAndLCD/README.md",
            "value": "GR_PEACH_4_3INCH_SHIELD"
        }
    }
}
camera-type "value" Description
CAMERA_CVBS NTSC signal (only GR-PEACH)
CAMERA_MT9V111 MT9V111
CAMERA_OV7725 GR-LYHCEE included camera
CAMERA_OV5642 OV5642
CAMERA_WIRELESS_CAMERA GR-PEACH Wireless/Camera shield (OV7725)
CAMERA_RASPBERRY_PI Raspberry Pi camera
CAMERA_RASPBERRY_PI_WIDE_ANGLE Raspberry Pi camera (wide-angle)
CAMERA_RASPBERRY_PI_832X480 Raspberry Pi camera (832x480)
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
TF043HV001A0 TF043HV001A0 (40-pin connector)
ATM0430D25 ATM0430D25 (40-pin connector)
FG040346DSSWBG03 FG040346DSSWBG03 (40-pin connector)
LVDS_TO_HDMI RZ/A2M LVDS To HDMI Board
RSK_TFT RSK TFT APP BOARD
DVI_STICK Display Output Board (Included in RZ/A2M Evaluation Board Kit )
RGB_TO_HDMI TFP410PAP (Included in GR-MANGO)

If camera-type and lcd-type are not specified, the following are specified.

  • GR-PEACH camera:CAMERA_MT9V111, LCD:GR_PEACH_4_3INCH_SHIELD
  • GR-LYCHEE camera:CAMERA_OV7725, LCD:TF043HV001A0
  • GR-MANGO camera:CAMERA_RASPBERRY_PI, LCD:RGB_TO_HDMI
  • RZ/A2M Evaluation Board Kit camera:CAMERA_RASPBERRY_PI, LCD:DVI_STICK
  • SBEV-RZ/A2M camera:CAMERA_RASPBERRY_PI, LCD:LVDS_TO_HDMI
  • SEMB1402 camera:CAMERA_RASPBERRY_PI, LCD:LVDS_TO_HDMI

Using Easy Connect Camera from your application

Easy Connect Camera has just one function:

#include "EasyAttach_CameraAndLCD.h"

int main(void) {
    DisplayBase Display;

    EasyAttach_Init(Display);

    // Required processing of your program

    EasyAttach_CameraStart(Display, DisplayBase::VIDEO_INPUT_CHANNEL_0);

    // Required processing of your program

    EasyAttach_LcdBacklight(true);

    // Rest of your program
}