Reference.EsploraWriteRGB History

Show minor edits - Show changes to markup

March 12, 2013, at 09:37 PM by Scott Fitzgerald -
Added line 37:
 delay(1000);
December 07, 2012, at 11:04 PM by Scott Fitzgerald -
Changed lines 11-12 from:

writeRGB(red, green, blue)

to:

Esplora.writeRGB(red, green, blue)

December 04, 2012, at 08:39 PM by Scott Fitzgerald -
Changed lines 7-8 from:

Write to the RGB led the three colour components, Red-Green-Blue, to produce the desired color.

to:

Write values representing brightness to the RGB LED. By mixing different values, it's possible to create different color combinations.

Changed lines 15-19 from:

red: this valute is to set the red led brightness. Range: from 0 to 255 green: this valute is to set the green led brightness. Range: from 0 to 255 blue: this valute is to set the blue led brightness. Range: from 0 to 255

to:
  • red: int, value is to set the red LED brightness. Range 0 to 255
  • green: int, value is to set the green LED brightness. Range 0 to 255
  • blue: int, value is to set the blue LED brightness. Range 0 to 255
Changed line 25 from:

[@

to:
Changed lines 38-39 from:

@]

to:
Changed lines 41-43 from:
to:
December 03, 2012, at 05:02 PM by Federico -
Added lines 1-44:

Esplora

writeRGB()

Description

Write to the RGB led the three colour components, Red-Green-Blue, to produce the desired color.

Syntax

writeRGB(red, green, blue)

Parameters

red: this valute is to set the red led brightness. Range: from 0 to 255 green: this valute is to set the green led brightness. Range: from 0 to 255 blue: this valute is to set the blue led brightness. Range: from 0 to 255

Returns

nothing

Example

#include <Esplora.h>

void setup() {} 

void loop()
{
 Esplora.writeRGB(0, 128, 255);
 delay(1000);
 Esplora.writeRGB(255, 0, 128);
 delay(1000);
 Esplora.writeRGB(128, 255, 0);
} 

See also

writeRed() writeGreen() writeBlue()

Share