Arduino_OplaUI - clear()

Fills the area with the background color, making the gauge disappear.

Syntax

gauge.clear(); 

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);
  gauge1.clear();
}