BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Slider and param.asInt();

I want to use a slider set to range 0-10 and want to use that value for a PWM output. Can I do it as I do below to get 0-255 PWM value? I guess there is no param.asByte();

BLYNK_WRITE(V1)
{
PWM1_value = param.asInt();
analogWrite(PWM1, PWM1_value*2.55);
}

you could use the map function:

https://www.arduino.cc/reference/en/language/functions/math/map/