Arduino_OplaUI - setBackgroundColor()

Sets the background color.

Syntax

gauge.setBackgroundColor(r, g, b);

Parameters

  • r, g, b (uint8_t): the color expressed in RGB form

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);
}