File tree Expand file tree Collapse file tree 3 files changed +74
-51
lines changed
libraries/ESP32/examples/Camera/CameraWebServer Expand file tree Collapse file tree 3 files changed +74
-51
lines changed Original file line number Diff line number Diff line change 1414// Select camera model
1515// ===================
1616// #define CAMERA_MODEL_WROVER_KIT // Has PSRAM
17- // #define CAMERA_MODEL_ESP_EYE // Has PSRAM
17+ #define CAMERA_MODEL_ESP_EYE // Has PSRAM
1818// #define CAMERA_MODEL_ESP32S3_EYE // Has PSRAM
1919// #define CAMERA_MODEL_M5STACK_PSRAM // Has PSRAM
2020// #define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM
2121// #define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM
2222// #define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM
2323// #define CAMERA_MODEL_M5STACK_UNITCAM // No PSRAM
24- #define CAMERA_MODEL_AI_THINKER // Has PSRAM
24+ // #define CAMERA_MODEL_AI_THINKER // Has PSRAM
2525// #define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM
2626// ** Espressif Internal Boards **
2727// #define CAMERA_MODEL_ESP32_CAM_BOARD
@@ -37,6 +37,7 @@ const char* ssid = "**********";
3737const char * password = " **********" ;
3838
3939void startCameraServer ();
40+ void setupLedFlash (int pin);
4041
4142void setup () {
4243 Serial.begin (115200 );
@@ -124,6 +125,11 @@ void setup() {
124125 s->set_vflip (s, 1 );
125126#endif
126127
128+ // Setup LED FLash if LED pin is defined in camera_pins.h
129+ #if defined(LED_GPIO_NUM)
130+ setupLedFlash (LED_GPIO_NUM);
131+ #endif
132+
127133 WiFi.begin (ssid, password);
128134 WiFi.setSleep (false );
129135
You can’t perform that action at this time.
0 commit comments