Reference.EsploraWriteRed History

Hide minor edits - Show changes to output

December 07, 2012, at 11:04 PM by Scott Fitzgerald -
Changed lines 11-12 from:
writeRed(value)
to:
Esplora.writeRed(value)
Deleted line 41:
December 04, 2012, at 08:40 PM by Scott Fitzgerald -
Changed lines 7-8 from:
Write to the red led the brightness value.
to:
Write values to the red LED that correspond to the brightness.
Changed lines 11-12 from:
writeRed(redValue)
to:
writeRed(value)
Changed lines 15-17 from:
red: this valute is to set the red led brightness. Range: from 0 to 255

to:
value: int, value to set the red LED brightness. Range 0 to 255

Changed line 24 from:
[@
to:
(:source lang=arduino tabwidth=4:)
Changed lines 37-38 from:
@]
to:
(:sourceend:)
Changed lines 40-42 from:
[[EsploraWriteGreen | writeGreen()]]\\
[[EsploraWriteBlue | writeBlue()]]
to:
* [[EsploraWriteGreen | writeGreen()]]
* [[EsploraWriteBlue | writeBlue()]]
December 03, 2012, at 05:12 PM by Federico -
Changed lines 3-4 from:
!!readRed()
to:
!!writeRed()
Changed lines 7-8 from:
Read the brightness value of the red led.
to:
Write to the red led the brightness value.
Changed lines 11-12 from:
readRed()
to:
writeRed(redValue)
Changed lines 15-16 from:
none
to:
red: this valute is to set the red led brightness. Range: from 0 to 255

Changed lines 20-21 from:
Return the red colour value in the range from 0 to 255.
to:
nothing
Changed lines 27-29 from:
void setup()
to:
void setup() {}

void loop()
Changed lines 31-35 from:
Serial.begin(9600);
to:
for(int i=0; i<256; i++)
{
Esplora.writeRed(i);
delay(100);
}
Deleted lines 36-44:

void loop()
{
int dimmerValue = Esplora.readSlider();
Esplora.writeRed(dimmerValue);
Serial.println(Esplora.readRed());

delay(500);
}
Changed lines 40-42 from:
[[EsploraReadGreen | readGreen()]]\\
[[EsploraReadBlue | readBlue()]]
to:
[[EsploraWriteGreen | writeGreen()]]\\
[[EsploraWriteBlue | writeBlue()]]
December 03, 2012, at 05:05 PM by Federico -
Added lines 1-44:
[[EsploraLibrary | Esplora]]

!!readRed()

!!!!Description

Read the brightness value of the red led.

!!!!Syntax

readRed()

!!!!Parameters

none

!!!!Returns

Return the red colour value in the range from 0 to 255.

!!!!Example

[@
#include <Esplora.h>

void setup()
{
Serial.begin(9600);
}

void loop()
{
int dimmerValue = Esplora.readSlider();
Esplora.writeRed(dimmerValue);
Serial.println(Esplora.readRed());

delay(500);
}
@]

!!!!See also
[[EsploraReadGreen | readGreen()]]\\
[[EsploraReadBlue | readBlue()]]

Share