Esp32-Cam/examples/camera-example
2024-08-02 13:40:30 +02:00
..
.cargo Add example 2024-05-21 12:26:35 +02:00
src Add example 2024-05-21 12:26:35 +02:00
.gitignore Add example 2024-05-21 12:26:35 +02:00
build.rs Add example 2024-05-21 12:26:35 +02:00
Cargo.toml Bump example version 2024-08-02 13:40:30 +02:00
README.md Remove quotation formatting for list 2024-05-21 12:28:30 +02:00
rust-toolchain.toml Add example 2024-05-21 12:26:35 +02:00
sdkconfig.defaults Add example 2024-05-21 12:26:35 +02:00

This example assumes you have already set up all the tools necessary to compile Rust for ESP32.

When run using cargo run, it will compile and flash the program to an ESP32-CAM mounted on an ESP32-CAM-MB board connected via USB to the host machine.

The program will:

  1. Initialize the onboard OV2640 camera as well as the bright white LED (flash).
  2. Turn on the flash.
  3. Take a jpeg-encoded picture using the camera.
  4. Print information about the image: width, height and size in bytes.
  5. Enter deep sleep for 60 seconds, after which the device starts the process.