The step widget can also be set to act sorta like an encoder. Set Send Step to Yes and it will alternate between a positive and negative number (determined by Step value) as you toggle the back and forth buttons. You can then write some code to translate that back and forth count into your encoder application needs.
The value shown on the step widget is not correct when in Send Step mode… ( @Dmytro - just a reminder: New Android Release 2.10.0 )… but you can setup a display widget to see the true value with this simple example.
BLYNK_WRITE(V0) // Step Widget
{
int StepState = param.asInt();
Blynk.virtualWrite(V1, StepState); // Display Widget
}
Controlling brightness can be done with a Slider or Step widget, as previously shown. Basicly you simply use Blynk widgets to supply the variable values you require for your controller code… how you write your code is up to you.