Add button to flash the LED
I was trying to use the built-in LED ... and made this modification in my code. Now I can light it if needed. Which I do on my 3D printer, when I need to have better light possibilities.
As people are using yout tutorial, can you please add it ?
In app_httpd.cpp (ecrypted the html part) I added: <. div class="input-group" id="flash-group"> <.label for="flash">Flash<./label> <.div class="switch"> <.input id="flash" type="checkbox" class="default-action"> <.label class="slider" for="flash"><./label> <./div> <./div>
and else if(!strcmp(variable, "flash")) { #define LED_BUILTIN 4 pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, atoi(value));
Of course I will test and add it to the code, I if there are no problems. By the way, I now use this firmware for most of my ESP32 cams. It offers a lot of additional comfort, such as OTA updates and reconnect: https://github.com/easytarget/esp32-cam-webserver
Thanks, will check it... Mine looks like this :D
