6.3. CAM¶
6.3.1. Overview¶
The cam example shows how to use cam interface to get the image collected by the camera device and display in LCD.
6.3.2. Board Setting¶
Connect camera device to the CAM interface on the board
Connect LCD to the LCD interface on the board
6.3.3. Project Setting¶
For this example, user should set used camera device module in CMakeList.txt
if use ov7725 camera device, configure
set(CONFIG_CAMERA "ov7725")
in CMakeList.txtif use ov5640 camera device, configure
set(CONFIG_CAMERA "ov5640")
in CMakeList.txt
6.3.4. Note¶
When using ov5640 camera, the ram and flash_xip target is not supported since ov5640 framebuffer
is too large, please use flash_sdram_xip target.
6.3.5. Running the example¶
When the example runs successfully, LCD will display the camera device collected image and the following message is displayed in the terminal:
> cam example