-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix of Library/Example/ESP32/CameraWebServer - app_httpd.cpp's flash pinout declaration. #11209
Conversation
Flash pinout had to be declared manually, not using the data from <camera_pins.h>, not following DRY. The change enables <app_httpd.cpp> to get what the board is from the file <config.h>, and properly pull the flash pinout variable.
👋 Hello Kuuh4, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Relates to fixing espressif#11208
@@ -30,7 +33,7 @@ | |||
// LED FLASH setup | |||
#if CONFIG_LED_ILLUMINATOR_ENABLED | |||
|
|||
#define LED_LEDC_GPIO 22 //configure LED pin | |||
#define LED_LEDC_GPIO LED_GPIO_NUM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change. The rest is structural to enable this change.
//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S3 // Has PSRAM | ||
|
||
|
||
// =========================== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually refers to line 33 onwards. Sorry for the mistake.
Ended up moving WIFI setup
here for it not to be away from Select camera model
.
Select camera model
had to be moved to a separate file to be able to be acessed from app_httpd.cpp
Undoing minor accidental change
I do not see a point of splitting the camera selection in another header. Please revert that. If |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
The reason for that is that if it's not in an importable (#include) header, it isn't able to be accessed at
Ok! I'll try to check it out as soon as possible. |
As I lack proper time and knowledge at the moment, I won't be able to fulfill the requirement below
|
Flash pinout had to be declared manually #11208 , not using the data from
camera_pins.h
, not following DRY (Don't Repeat Yourself). The change enablesapp_httpd.cpp
to get what the board is from the fileconfig.h
, and properly pull the flash pinout variable.By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes
Description of Change
Fix for the implementation of different GPIO layouts via board model selection. In special, the flash module.
Tests scenarios
I have tested on AIThinker's ESP32_CAM kit via Arduino IDE.
Related links
Closes #11208