vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.
https://blynk.io/
MIT License
281 stars 97 forks source link

Add support for merged virtual pins #13

Closed ComputerAided closed 5 years ago

ComputerAided commented 6 years ago

When using the zeRGBa widget in merge mode, three separate calls to the blynk.VIRTUAL_WRITE function are made. Make the VIRTUAL_WRITE wrapper pass the value as a tuple or list to the handler function.

@blynk.VIRTUAL_WRITE(0)
def zeRGBa(value):
    r = value[0]
    g = value[1]
    b = value[2]

    # Do stuff
thalesvon commented 5 years ago

Any updates on this issue? I couldn't parse each separete value on my code.

vshymanskyy commented 5 years ago

@thalesvon @ComputerAided I'm preparing an update, and will re-check this - I'm sure it worked before. Thanks for your patience.

andywarburton commented 5 years ago

If you could implement this it would be super handy... I imagine a common thing people will want to do is control neopixel style lights using Blynk and this would make that job a ton easier.

mattbrailsford commented 5 years ago

@vshymanskyy was this fixed in the Major Rewrite commit of Nov 4th? 3497c4c4d4f467fa098ce03180bc0cfcf9c9af7a

vshymanskyy commented 5 years ago

This will be verified before the upcoming 0.2.0 release. Thanks for waiting so long!

ComputerAided commented 5 years ago

Thanks for adding this! I can't wait to use it in my project.

vshymanskyy commented 5 years ago

Verified in the master branch

vshymanskyy commented 5 years ago

v0.2.0 is released and available via pip: https://github.com/vshymanskyy/blynk-library-python/releases/latest