I didn’t find any examples that include the setLabel () and setColor () functions related to widgets. Has anyone used these and can give a brief explanation or add an example?
Thank you
perhaps you mean setProperty() ?
https://docs.blynk.cc/#blynk-firmware-blynktimer-blynksetpropertyvpin-property-value
I like to understand how setLabel () and setColor () work since it is not explained anywhere.
Just follow the already provided link… leads to more info…
https://docs.blynk.cc/#blynk-main-operations-change-widget-properties
For example using a LED widget on V1, one could use this for a color change…
Blynk.setProperty(V1, "color", "#23C48E"); // change LED color to BLYNK_GREEN
Or this…
WidgetLED led1(V1); // register to virtual pin 1
led1.setColor("#23C48E"); // change LED color to BLYNK_GREEN
If the documentation is not up to ones standards of silver plater simplicity… I find simply searching this forum for keywords and doing a little light reading to see how others implement stuff equally beneficial.
As I just did for this examples use case
Or perhaps it will be better if you explain what you are trying to do and with what widget.
ok gunner thanks. I read and read the forum again but found nothing to clarify the concept. Now I understand and it’s simpler and I realized what I thought …
My Google/Search Fu is approaching black belt levels I just searched for one of the command keywords (setColor) then looked at various posts and code until I found the command in use. The rest was somewhat intuitive, particularly for the LED.