Controlling a servo motor with Blynk

I want to control a servo motor with a raspberry pi and Blynk. I’ve already created the code to control the servo with python. Where do I go from there? How do I connect the code I currently have to Blynk?

Have you tried here:

Pete.

@blynk.handle_event(‘write V0’)
def write_virtual_pin_handler(pin, value):
print(WRITE_EVENT_PRINT_MSG.format(pin, value))
servo.duty(int(value[0]))

Hello did you figure it out i cant find any thing for it can you help me

@AgrarIOT are you using Python/Micropython?

Are you able to connect to Blynk with your script?

Pete.

@AgrarIOT please edit your post (using the pencil icon at the bottom) and delete the screen photograph of your code and replace it with the code as text.
Copy the text and paste it into your post, and place triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.

‘’’
I have a code that works fine but it doesnt run mij pwm …

My code is

[Unformatted code removed by moderator]

@AgrarIOT i provided you with triple backticks, and even said…

but you still chose to use some different characters, and you placed them at the very top of your post, instead of before and after your block of code.

Your unformatted code has been deleted as a result.

Pete.