Arduino_OplaUI - setTitle()

Sets the title of the gauge if you want to display a label.

Syntax

gauge.setTitle(title);

Parameters

  • title: a variable of type String containing the title

Example

#include <Arduino_MKRIoTCarrier.h>
#include <Arduino_OplaUI.h>

MKRIoTCarrier carrier;
OplaGauge1 gauge1;

void setup() {
  carrier.begin();
  gauge1.begin(carrier.display);
  gauge1.setTitle("TEMPERATURE");
}

See also