Skip to content

Commit 5edf1be

Browse files
committed
Cant stop tweaking
1 parent fe5038e commit 5edf1be

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

camera_index_ov2640.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ const uint8_t index_ov2640_html[] PROGMEM = R"=====(
367367
<nav id="menu">
368368
<div class="input-group" id="lamp-group">
369369
<label for="lamp">Light</label>
370-
<div class="range-min">0%</div>
370+
<div class="range-min">Off</div>
371371
<input type="range" id="lamp" min="0" max="100" value="0" class="default-action">
372-
<div class="range-max">100%</div>
372+
<div class="range-max">Full</div>
373373
</div>
374374
<div class="input-group" id="framesize-group">
375375
<label for="framesize">Resolution</label>
@@ -716,7 +716,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
716716
const startStream = () => {
717717
view.src = `${streamUrl}/stream`
718718
show(viewContainer)
719-
view.scrollIntoView();
719+
view.scrollIntoView(false);
720720
streamButton.innerHTML = 'Stop Stream'
721721
}
722722

@@ -725,7 +725,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
725725
stopStream()
726726
view.src = `${baseHost}/capture?_cb=${Date.now()}`
727727
show(viewContainer)
728-
view.scrollIntoView();
728+
view.scrollIntoView(false);
729729
}
730730

731731
closeButton.onclick = () => {

camera_index_ov3660.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ const uint8_t index_ov3660_html[] PROGMEM = R"=====(
367367
<nav id="menu">
368368
<div class="input-group" id="lamp-group">
369369
<label for="lamp">Light</label>
370-
<div class="range-min">0%</div>
370+
<div class="range-min">Off</div>
371371
<input type="range" id="lamp" min="0" max="100" value="0" class="default-action">
372-
<div class="range-max">100%</div>
372+
<div class="range-max">Full</div>
373373
</div>
374374
<div class="input-group" id="framesize-group">
375375
<label for="framesize">Resolution</label>

camera_pins.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#define HREF_GPIO_NUM 23
2323
#define PCLK_GPIO_NUM 22
2424

25-
#define LED_PIN 2 // A status led on the RGB; could also use pin 0 or 4
26-
#define LED_ON HIGH //
27-
#define LED_OFF LOW //
28-
//#define LAMP_PIN x // No LED FloodLamp.
25+
#define LED_PIN 2 // A status led on the RGB; could also use pin 0 or 4
26+
#define LED_ON HIGH //
27+
#define LED_OFF LOW //
28+
//#define LAMP_PIN x // No LED FloodLamp.
2929

3030

3131
// ESP-EYE
@@ -34,7 +34,7 @@
3434
#elif defined(CAMERA_MODEL_ESP_EYE)
3535
#define PWDN_GPIO_NUM -1
3636
#define RESET_GPIO_NUM -1
37-
#define XCLK_GPIO_NUM 4
37+
#define XCLK_GPIO_NUM 4
3838
#define SIOD_GPIO_NUM 18
3939
#define SIOC_GPIO_NUM 23
4040

@@ -46,14 +46,14 @@
4646
#define Y4_GPIO_NUM 14
4747
#define Y3_GPIO_NUM 13
4848
#define Y2_GPIO_NUM 34
49-
#define VSYNC_GPIO_NUM 5
49+
#define VSYNC_GPIO_NUM 5
5050
#define HREF_GPIO_NUM 27
5151
#define PCLK_GPIO_NUM 25
5252

53-
#define LED_PIN 21 // Status led
54-
#define LED_ON HIGH //
55-
#define LED_OFF LOW //
56-
//#define LAMP_PIN v x // No LED FloodLamp.
53+
#define LED_PIN 21 // Status led
54+
#define LED_ON HIGH //
55+
#define LED_OFF LOW //
56+
//#define LAMP_PIN x // No LED FloodLamp.
5757

5858

5959
// ESP32 M5STACK

esp32-cam-webserver.ino

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*
1919
* note: Make sure that you have either selected ESP32 AI Thinker,
20-
* or another board which has PSRAM enabled to use high resolution camera modes
20+
* or another board which has PSRAM enabled to use high resolution camera modes
2121
*/
2222

2323
// Select camera board model
@@ -70,6 +70,8 @@ void startCameraServer();
7070
void setup() {
7171
Serial.begin(115200);
7272
Serial.setDebugOutput(true);
73+
Serial.println();
74+
Serial.println("====");
7375
Serial.print("esp32-cam-webserver: ");
7476
Serial.println(myName);
7577
Serial.print("Code Built: ");
@@ -158,14 +160,14 @@ void setup() {
158160
WiFi.begin(ssid, password);
159161

160162
while (WiFi.status() != WL_CONNECTED) {
161-
delay(250); // Wait for Wifi to connect. If no wifi the code basically hangs here.
162-
// It would be good to do something else here as a future enhancement.
163-
// (eg: go to a captive AP config portal to configure the wifi)
163+
delay(250); // Wait for Wifi to connect. If this fails wifi the code basically hangs here.
164+
// - It would be good to do something else here as a future enhancement.
165+
// (eg: go to a captive AP config portal to configure the wifi)
164166
}
165167

166168
// feedback that we are connected
167-
Serial.println("");
168169
Serial.println("WiFi connected");
170+
Serial.println("");
169171
flashLED(200);
170172
delay(100);
171173
flashLED(200);
@@ -175,7 +177,7 @@ void setup() {
175177
// Start the Stream server, and the handler processes for the Web UI.
176178
startCameraServer();
177179

178-
Serial.print("Camera Ready! Use 'http://");
180+
Serial.print("Camera Ready! Use 'http://");
179181
Serial.print(WiFi.localIP());
180182
Serial.println("' to connect");
181183
}

0 commit comments

Comments
 (0)