Home Page | Language Reference (extended) | SD Reference | Libraries | Comparison | Changes


Esplora

readRed()

Description

Read the brightness value of the red LED.

Syntax

Esplora.readRed()

Parameters

none

Returns

int : the brightness of the red LED between 0 and 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


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.