Reference.EsploraWriteRGB History
Hide minor edits - Show changes to output
March 12, 2013, at 04:37 PM
by Scott Fitzgerald -
Added line 37:
December 07, 2012, at 05:04 PM
by Scott Fitzgerald -
Changed lines 11-12 from:
writeRGB(red, green, blue)
to:
Esplora.writeRGB(red, green, blue)
December 04, 2012, at 02: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:
(:source lang=arduino tabwidth=4:)
Changed lines 38-39 from:
to:
Changed lines 41-43 from:
[[EsploraWriteRed | writeRed()]]
[[EsploraWriteGreen | writeGreen()]]
[[EsploraWriteBlue | writeBlue()]]
to:
* [[EsploraWriteRed | writeRed()]]
* [[EsploraWriteGreen | writeGreen()]]
* [[EsploraWriteBlue | writeBlue()]]
December 03, 2012, at 11:02 AM
by Federico -
Added lines 1-44:
[[EsploraLibrary | 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
[[EsploraWriteRed | writeRed()]]
[[EsploraWriteGreen | writeGreen()]]
[[EsploraWriteBlue | writeBlue()]]