Skip to content

Commit 79c2513

Browse files
committed
Improve comment intent
1 parent cec3fca commit 79c2513

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#include <WiFi.h>
33

44
//
5-
// WARNING!!! Make sure that you have either selected ESP32 Wrover Module,
6-
// or another board which has PSRAM enabled
5+
// WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality
6+
// Ensure ESP32 Wrover Module or other board with PSRAM is selected
7+
// Partial images will be transmitted if image exceeds buffer size
78
//
89

910
// Select camera model
@@ -46,7 +47,9 @@ void setup() {
4647
config.pin_reset = RESET_GPIO_NUM;
4748
config.xclk_freq_hz = 20000000;
4849
config.pixel_format = PIXFORMAT_JPEG;
49-
//init with high specs to pre-allocate larger buffers
50+
51+
// if PSRAM IC present, init with UXGA resolution and higher JPEG quality
52+
// for larger pre-allocated frame buffer.
5053
if(psramFound()){
5154
config.frame_size = FRAMESIZE_UXGA;
5255
config.jpeg_quality = 10;
@@ -70,13 +73,13 @@ void setup() {
7073
}
7174

7275
sensor_t * s = esp_camera_sensor_get();
73-
//initial sensors are flipped vertically and colors are a bit saturated
76+
// initial sensors are flipped vertically and colors are a bit saturated
7477
if (s->id.PID == OV3660_PID) {
75-
s->set_vflip(s, 1);//flip it back
76-
s->set_brightness(s, 1);//up the blightness just a bit
77-
s->set_saturation(s, -2);//lower the saturation
78+
s->set_vflip(s, 1); // flip it back
79+
s->set_brightness(s, 1); // up the brightness just a bit
80+
s->set_saturation(s, -2); // lower the saturation
7881
}
79-
//drop down frame size for higher initial frame rate
82+
// drop down frame size for higher initial frame rate
8083
s->set_framesize(s, FRAMESIZE_QVGA);
8184

8285
#if defined(CAMERA_MODEL_M5STACK_WIDE)

0 commit comments

Comments
 (0)