Reference   Language | Libraries | Comparison | Changes

Esplora

readBlue()

Description

Read the brightness value of the blue LED.

Syntax

Esplora.readBlue()

Parameters

none

Returns

int : the brightness of the blue LED between 0 and 255.

Example

#include <Esplora.h>

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

void loop()
{
 int dimmerValue = Esplora.readSlider();
 Esplora.writeBlue(dimmerValue);
 Serial.println(Esplora.readBlue());

 delay(500);
}

See also

readGreen()
readRed() Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share