blynkkk / blynk_Issues

6 stars 6 forks source link

In sketch I can't use virtual pins from V128 to V255 #81

Closed whogarden closed 3 years ago

whogarden commented 3 years ago

In sketch (with arduino IDE and ESP8266-12F) I can't use virtual pins from V128 to V255.

It does nothing.

BLYNK_WRITE(V131) // Executes when the value of virtual pin 131 changes { int pin_value = param.asInt(); if (pin_value == 1) { // execute this code if the switch widget is now ON digitalWrite(13, LOW); // Set digital pin 13 HIGH } else { // execute this code if the switch widget is now OFF digitalWrite(13, HIGH); // Set digital pin 13 LOW } } Virtual_Pin

vshymanskyy commented 3 years ago

@whogarden pins above V127 have some limitations in usage, and this is properly documeted. Check out these notes:

For virtual pins with numbers > 127, the V128 syntax is not available. For virtual pins with numbers > 127, please use BLYNK_WRITE_DEFAULT() / BLYNK_READ_DEFAULT() API.