Arduino_OplaUI - setSuffix()

Sets the suffix to be displayed after the value. You can use this for units of measurement.

Syntax

gauge.setSuffix(suffix);

Parameters

  • suffix: a variable of type String

Example

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

MKRIoTCarrier carrier;
OplaGauge1 gauge1;

void setup() {
  carrier.begin();
  gauge1.begin(carrier.display);
  gauge1.setSuffix(" km/h");
}

See also