Camera in sample for GR-PEACH. This sample works on GR-LYCHEE besides GR-PEACH.

Video Links on how to setup and run Camera_in Application:

Your video will be live at: Part1 of 1

Camera in sample for GR-PEACH or GR-LYCHEE. While USER_BUTTON0 is pressed, it will save the camera image(default is jpeg fotmat) to USB memory or SD card.
If both USB and SD are inserted, GR-PEACH or GR-LYCHEE connect to the previously detected device.

The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.

Please refer to following link about Audio/Camera Shield.

You can configure this sample application via the following definitions. If you set to 1, it will save the video file as a AVI format:


/**** User Selection *********/
#define SAVE_FILE_TYPE         (0)     /* Select  0(Image(.jpg)) or 1(Movie(.avi)) */

  • USB channel available in this sample program
    By default, the GR-PEACH's USB connector (USB0) is configured to be used. When using USB0, please close GR-PEACH's JP3.

    Or, you can use the Audio/Camera Shield's USB connector (USB1). When using USB1, you need to close JP1 of Audio/Camera Shield.

  • Specify each configuration
    To specify camera and LCD, add camera-type and lcd-type to mbed_app.json.
    For details, please refer to mbed-gr-libs /


    "config": {
            "help": "0:disable 1:enable",
            "value": "1"
            "help": "Please see mbed-gr-libs/",
            "value": "CAMERA_CVBS"
            "help": "0:disable 1:enable",
            "value": "0"
            "help": "Please see mbed-gr-libs/",
            "value": "GR_PEACH_4_3INCH_SHIELD"
            "help": "(for GR-PEACH) 0:ch0 1:ch1",
            "value": "1"
            "help": "(for GR-PEACH) 0:not use 1:use",
            "value": "1"

Revision graph

The revision graph only works with JavaScript-enabled browsers.