Configuring a Labeled Value widget

You can get the configuration settings page for the Labeled Value widget by tapping the Labeled Value widget on the canvas. Following screenshot shows the Labeled Value Settings page:

Labeled Value Settings page

The configuration for the digital and virtual pins are the same as the Value Display widget discussed in the previous section. The additional feature, LABEL, can be used for formatting the output display on the label.

Under LABEL, tap the textbox to edit. The formatting options are listed here. For example, your sensor sends a value of 12.6789 to the Blynk application, and you can format it using one of the following options:

  • /pin/: Displays the value without formatting (12.6789)
  • /pin./: Displays the rounded value without the decimal part (13)
  • /pin.#/: Displays the value to one decimal place (12.7)
  • /pin.##/: Displays the value to two decimal places (12.68)

You can also change the alignment of the output using one of the three buttons: left, center, and right.

The sample code you used in the Value Display widget can be used with the Labeled Value widget without making any modifications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.65.65