BLYNK_WRITE(V5) // Button Widget writes to Virtual Pin V5
{
int i = param.asInt();
if(i==1){
Servoon();
}
}
void Servoon() {
int pos = 1;
for (pos = 1; pos <= 60; pos += 1) {
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}