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