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