|
|
@ -43,6 +43,19 @@
|
|
|
|
#define CAMERA_MODEL_AI_THINKER
|
|
|
|
#define CAMERA_MODEL_AI_THINKER
|
|
|
|
|
|
|
|
|
|
|
|
#include "camera_pins.h"
|
|
|
|
#include "camera_pins.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Next one is an include with wifi credentials.
|
|
|
|
|
|
|
|
This is what you need to do:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1. Create a file called "home_wifi_multi.h" in the same folder OR under a separate subfolder of the "libraries" folder of Arduino IDE. (You are creating a "fake" library really - I called it "MySettings").
|
|
|
|
|
|
|
|
2. Place the following text in the file:
|
|
|
|
|
|
|
|
#define SSID1 "replace with your wifi ssid"
|
|
|
|
|
|
|
|
#define PWD1 "replace your wifi password"
|
|
|
|
|
|
|
|
3. Save.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Should work then
|
|
|
|
|
|
|
|
*/
|
|
|
|
#include "home_wifi_multi.h"
|
|
|
|
#include "home_wifi_multi.h"
|
|
|
|
|
|
|
|
|
|
|
|
//OV2640 cam;
|
|
|
|
//OV2640 cam;
|
|
|
@ -434,7 +447,12 @@ void setup()
|
|
|
|
.ledc_timer = LEDC_TIMER_0,
|
|
|
|
.ledc_timer = LEDC_TIMER_0,
|
|
|
|
.ledc_channel = LEDC_CHANNEL_0,
|
|
|
|
.ledc_channel = LEDC_CHANNEL_0,
|
|
|
|
.pixel_format = PIXFORMAT_JPEG,
|
|
|
|
.pixel_format = PIXFORMAT_JPEG,
|
|
|
|
.frame_size = FRAMESIZE_VGA,
|
|
|
|
|
|
|
|
|
|
|
|
// .frame_size = FRAMESIZE_QVGA,
|
|
|
|
|
|
|
|
.frame_size = FRAMESIZE_UXGA,
|
|
|
|
|
|
|
|
// .frame_size = FRAMESIZE_SVGA,
|
|
|
|
|
|
|
|
// .frame_size = FRAMESIZE_QVGA,
|
|
|
|
|
|
|
|
// .frame_size = FRAMESIZE_VGA,
|
|
|
|
.jpeg_quality = 12,
|
|
|
|
.jpeg_quality = 12,
|
|
|
|
.fb_count = 2
|
|
|
|
.fb_count = 2
|
|
|
|
};
|
|
|
|
};
|
|
|
|