Hey, can anyone help me out?
I need to set the virtual pins that i need to use, but i don’t see any V1,V2 or any Vpins here in this script.
I’m using a raspberry pi 2 B+ & python
import BlynkLib
import time
BLYNK_AUTH = ‘YourAuthToken’
Initialize Blynk
blynk = BlynkLib.Blynk(BLYNK_AUTH)
Register Virtual Pins
@blynk.VIRTUAL_WRITE(1)
def my_write_handler(value):
print(‘Current V1 value: {}’.format(value))
@blynk.VIRTUAL_READ(2)
def my_read_handler():
# this widget will show some time in seconds…
blynk.virtual_write(2, time.ticks_ms() // 1000)
Start Blynk (this call should never return)
blynk.run()