O'Reilly logo

ARM® Cortex® M4 Cookbook by Dr. Mark Fisher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to use the camera

The camera is another I2C peripheral, but to display video we need to read the array pixels that make up an image and write their values to the GLCD very rapidly. We achieve this by using Direct Memory Access (DMA) to stream image frames directly to the GLCD rather than writing individual values as we did for the audio codec demo. We'll name this recipe cameraDemo_c6v0.

How to do it…

  1. Create a new project named cameraDemo. Using the RTE manager, go to Board Support and select the Camera (API) and Graphic LCD (API) software components.
  2. Set the CMSIS and Device software components, as we've done for previous projects. Set the Use MicroLIB project option.
  3. Create a file named cameraDemo.c and add boilerplate code to configure clocks, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required