Example code
// Arduino - Basic web server
#include "esp_camera.h"
#include <WiFi.h>
// Camera pins for AI-Thinker model
#define PWDN_GPIO_NUM 32
#define RESET_GPIO_NUM -1
#define XCLK_GPIO_NUM 0
#define SIOD_GPIO_NUM 26
#define SIOC_GPIO_NUM 27
// ... etc
void setup() {
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.pixel_format = PIXFORMAT_JPEG;
config.frame_size = FRAMESIZE_VGA;
config.jpeg_quality = 12;
config.fb_count = 1;
esp_camera_init(&config);
WiFi.begin(ssid, password);
startCameraServer();
}