mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-18 14:08:02 +00:00
Added unitcams3
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -318,10 +318,10 @@ void setup()
|
||||
{
|
||||
// Disable brownout
|
||||
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
|
||||
// LED_BUILTIN (GPIO33) has inverted logic false => LED on
|
||||
#ifdef LED_BUILTIN
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
digitalWrite(LED_BUILTIN, false);
|
||||
// LED_GPIO (GPIO33) has inverted logic false => LED on
|
||||
#ifdef LED_GPIO
|
||||
pinMode(LED_GPIO, OUTPUT);
|
||||
digitalWrite(LED_GPIO, false);
|
||||
#endif
|
||||
|
||||
// ESP32S2 has no serial port
|
||||
@@ -372,8 +372,8 @@ void setup()
|
||||
iotWebConf.getApTimeoutParameter()->visible = true;
|
||||
iotWebConf.setConfigSavedCallback(on_config_saved);
|
||||
iotWebConf.setWifiConnectionCallback(on_connected);
|
||||
#ifdef LED_BUILTIN
|
||||
iotWebConf.setStatusPin(LED_BUILTIN, LOW);
|
||||
#ifdef LED_GPIO
|
||||
iotWebConf.setStatusPin(LED_GPIO, LOW);
|
||||
#endif
|
||||
iotWebConf.init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user