Re: ESP_CAM webpage code.
Posted: Tue Mar 28, 2023 3:28 pm
Adding this lines in cpp file is sufficient to reproduce the issue:
At the beginning (line ~75):
Lines ~840...850 (cmd_handler function):
At the beginning (line ~75):
Code: Select all
int LED_R;Code: Select all
else if (!strcmp(variable, "contrast"))
res = s->set_contrast(s, val);
else if (!strcmp(variable, "LED_R"))
{
LED_R = val;
ledcWrite(0, LED_R);
}
else if (!strcmp(variable, "brightness"))
res = s->set_brightness(s, val);