Skip to content
Josh Perriman edited this page Aug 2, 2018 · 1 revision

Overview

The LED library can be used to easily set the colour of the RGB led on the board. This LED can be very useful for debugging code by displaying the current state of the board as a colour on the LED.

Library reference

RGBinit

void RGBinit();

Takes no inputs and returns nothing. This function must be called first to setup the pins on the board as outputs for the LED.

RGBset

void RGBset(enum colour col);

Takes a colour as an input and returns nothing.

The available colours are:

  • OFF
  • BLUE
  • GREEN
  • CYAN
  • RED
  • PINK
  • WHITE
Example
RGBset(PINK);

Clone this wiki locally