ESP32 WebSocket Camera. [PDF]

  • 0 0 0
  • Suka dengan makalah ini dan mengunduhnya? Anda bisa menerbitkan file PDF Anda sendiri secara online secara gratis dalam beberapa menit saja! Sign Up
File loading please wait...
Citation preview

#include "OV7670.h" #include #include #include #include #include #include #include #include "canvas_htm.h" String header; // Current time unsigned long currentTime = millis(); // Previous time unsigned long previousTime = 0; // Define timeout time in milliseconds (example: 2000ms = 2s) const long timeoutTime = 2000; volatile uint8_t websock_num = 0, info_available = 0, output_ready = 0; char info_buffer[80]; const char *ap_ssid = "DD"; const char *ap_password = "7548089146"; const char *ssid_AP_1 = "DD"; const char *pwd_AP_1 = "7548089146"; const char *ssid_AP_2 = "XXXXXXXXX"; const char *pwd_AP_2 = "xxxxxxxxx"; const char *ssid_AP_3 = "XXXXXXXXX"; const char *pwd_AP_3 = "xxxxxxxxx"; const int SIOD = 21; //SDA const int SIOC = 22; //SCL const int VSYNC = 34; const int HREF = 35; const int XCLK = 32; const int PCLK = 33; const const const const const const const const



int int int int int int int int



D0 D1 D2 D3 D4 D5 D6 D7



= = = = = = = =



27; 26; 25; 15; 14; 13; 12; 4;



//const int TFT_DC = 2; //const int TFT_CS = 5; //DIN