Reference   Language | Libraries | Comparison | Changes

Esplora

writeRed()

Description

Write values to the red LED that correspond to the brightness.

Syntax

Esplora.writeRed(value)

Parameters

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

Returns

nothing

Example

#include <Esplora.h>

void setup() {}

void loop()
{
 for(int i=0; i<256; i++)
 {
  Esplora.writeRed(i);
  delay(100);
 }
}

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.

Share