configuration more or less dialed in

This commit is contained in:
2021-11-26 14:35:33 -08:00
parent 5dd3acdc4e
commit af882b5a3b
6 changed files with 22 additions and 7 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch

7
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

View File

@@ -13,8 +13,8 @@ platform = espressif32
board = esp32cam
framework = arduino
board_build.partitions = customparts.csv
;upload_port = COM6 ;com port of the ESP32-cam
upload_port = x.x.x.x ;ip address of the ESP32-cam
upload_port = /dev/ttyUSB0 ;com port of the ESP32-cam
; upload_port = x.x.x.x ;ip address of the ESP32-cam
build_flags =
; -DBOARD_HAS_PSRAM=TRUE
-DLED_BUILTIN=4

View File

@@ -33,8 +33,11 @@ void setup()
// Initialize the ESP32 CAM, here we use the AIthinker ESP32 CAM
delay(100);
cam.init(esp32cam_aithinker_config);
delay(100);
camera_config_t cfg=esp32cam_aithinker_config;
cfg.frame_size=FRAMESIZE_XGA;
cfg.jpeg_quality=25;
cfg.fb_count=1; // 2 causes interference-like streaking
cam.init(cfg); delay(100);
//LED settings
pinMode(LED_BUILTIN, OUTPUT);

View File

@@ -116,7 +116,7 @@ void handle_jpg_stream(void)
thisClient.write((char *)cam.getfb(), cam.getSize());
server1.sendContent("\r\n");
delay(20);
delay(100); // 10 fps
}
}

View File

@@ -1,4 +1,4 @@
#include <Arduino.h>
// Change YOUR_AP_NAME and YOUR_AP_PASSWORD to your WiFi credentials
const char *ssid = "YOUR_SSID"; // Put your SSID here
const char *password = "YOUR_PASSWORD"; // Put your PASSWORD here
const char *ssid = "ncc74656"; // Put your SSID here
const char *password = "Rw7qfY5tmtaWbXaWQ5aMSRkF"; // Put your PASSWORD here