Update ESP32cam-demo.ino

master
Alan 2023-10-16 08:47:19 +01:00 zatwierdzone przez GitHub
rodzic e275ba3ce9
commit b73fa63c0c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 23 dodań i 23 usunięć

Wyświetl plik

@ -58,29 +58,29 @@
#include <Arduino.h> #include <Arduino.h>
// forward declarations // forward declarations (this is a list of all procedures in this sketch which Platform IO requires)
bool initialiseCamera(bool); bool initialiseCamera(bool); // this sets up and enables the camera (if bool=1 standard settings are applied but 0 allows you to apply custom settings)
bool cameraImageSettings(); bool cameraImageSettings(); // this applies the image settings to the camera (brightness etc.)
void changeResolution(framesize_t); void changeResolution(framesize_t); // this changes the capture frame size
String localTime(); String localTime(); // returns the current time as a String
void flashLED(int); void flashLED(int); // flashes the onboard indicator led
byte storeImage(); byte storeImage(); // stores an image in Spiffs or SD card
void handleRoot(); void handleRoot(); // the root web page
void handlePhoto(); void handlePhoto(); // web page to capture an image from camera and save to spiffs or sd card
bool handleImg(); bool handleImg(); // Display a previously stored image
void handleNotFound(); void handleNotFound(); // if invalid web page is requested
void readRGBImage(); void readRGBImage(); // demo capturing an image and reading its raw RGB data
bool getNTPtime(int); bool getNTPtime(int); // handle the NTP real time clock
bool handleJPG(); bool handleJPG(); // display a raw jpg image
void handleJpeg(); void handleJpeg(); // display a raw jpg image which periodically refreshes
void handleStream(); void handleStream(); // stream live video (note: this can get the camera very hot)
int requestWebPage(String*, String*, int); int requestWebPage(String*, String*, int); // procedure allowing the sketch to read a web page its self
void handleTest(); void handleTest(); // test procedure for experimenting with bits of code etc.
void brightLed(byte); void brightLed(byte); // turn the onboard flash LED on/off with varying brightness
void setupFlashPWM(); void setupFlashPWM(); // set up the PWM for the above flash
void handleData(); void handleData(); // the root web page requests this periodically via Javascript in order to display updating information
void readGreyscaleImage(); void readGreyscaleImage(); // demo capturing a greyscale image and reading its raw RGB data
void resize_esp32cam_image_buffer(uint8_t*, int, int, uint8_t*, int, int); void resize_esp32cam_image_buffer(uint8_t*, int, int, uint8_t*, int, int); // this resizes a captured greyscale image (used by above)
// --------------------------------------------------------------- // ---------------------------------------------------------------