Arduino_OplaUI - draw()

Redraws the gauge. Use this method in your loop() function or whenever you need to update the gauge when you change its configuration or value.

Syntax

gauge.draw(); 

Example

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

MKRIoTCarrier carrier;
OplaGauge1 gauge1;

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

void loop(void) {
  gauge1.draw();
  delay(250);
}