HI,
I am confused by how many virtual pins there are I know the app has vo-v31 but I see code writing up in the hundreds. So how many are there and are these just used for storage and not widgets ?
Also what is the difference between ‘virtualwrite(V0,0)’ and ‘virtualwrite(0,0)’ ie without the V in front?
I have noticed this in a lot of code where the ‘V’ is omitted
Actually they can because there is a manual override you can set in your sketch to force quantity from 32 to 128.
I’m not going to say what it is because it might cause problems for the weak devices but primarily because I have forgotten the name of the flag. It’s covered on the site, let me know what search term you use to find the flag
Searching for something as broad as virtual pin, nets way too much But I did remember that it was @Dmitriy who mentioned it… thus virtual pins after:2016-12-01 @Dmitriy eventually netted the answer.… and it still isn’t documented that I could find.
CostasOct '16 @Spyrosgreece if you look at the Blynk.Config.h header file in Blynk/src/Blynk folder there is this entry:
// Uncomment to force-enable 128 virtual pins
//#define BLYNK_USE_128_VPINS
So as it suggests if you uncomment the second line it will force 128 virtual pins. It is either 32 or 128, nothing in between but obviously you use as many of these as you need.
I’m guessing here but if you didn’t want to mess with the libraries, as this will need to be done every time Blynk releases a new version, then simply adding the following before the Blynk libraries in your sketch might work.
#define BLYNK_USE_128_VPINS
Perhaps @vshymanskyy could confirm if this entry in the sketch is ok, rather than a library mod.
Meanwhile you can perhaps test it yourself and let us know the outcome.
I will try the link again. Meanwhile I have modded the header so I have 128 V pins with a standard arduino and I can report at the moment it is working perfectly.