Arduino_OplaUI - begin()

Initializes the gauge.

Syntax

gauge.begin(display);

Parameters

  • display: a variable of type Adafruit_ST7789 (such as carrier.display when using the MKRIoTCarrier library)

Example

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

MKRIoTCarrier carrier;
OplaGauge1 gauge1;

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