Timelapse icon indicating copy to clipboard operation
Timelapse copied to clipboard

Add button to flash the LED

Open pracovnik opened this issue 3 years ago • 2 comments

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));

pracovnik avatar Jun 03 '22 14:06 pracovnik

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

MakerMeik avatar Jun 03 '22 14:06 MakerMeik

Thanks, will check it... Mine looks like this :D

PrusaMini_IMG_20210206_162550 Fotka tlace z hora

pracovnik avatar Jun 03 '22 14:06 pracovnik