All boards come with an RGB led on the pcb which is controlled through the ILed interface.
using MbientLab.MetaWear.Peripheral; ILed led = metawear.GetModule<ILed>();
ILed interface comes with 3 preset patterns for ease of access to the LED.
|Blink||Quickly flash the LED followed by an longer off period|
|Pulse||Gradual and periodic transition between a low and high intensity|
|Solid||Keep the LED on at a fixed brightness|
// use the solid preset pattern for the blue LED led.EditPattern(Color.Blue, PatternPreset.Pulse);
Developers can directly set the parameters themselves if desired using EditPattern.
// Set the green channel to turn on for 5 seconds led.EditPattern(Color.Green, duration: 1000, highTime: 500, high: 16, low: 16, count: 5);