RGB - toggle

How to toggle the current state of the LED

Example

This example shows how to toggle the current state of the LED.

#include <NanoPlayBoard.h>

NanoPlayBoard board;

void setup() {

}

void loop() {
  board.rgb.toggle();
  delay(1000);
}

The source code of this example is available on GitHub.