Reference   Language | Libraries | Comparison | Changes

Esplora

writeGreen()

Description

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

Syntax

Esplora.writeGreen(value)

Parameters

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

Returns

nothing

Example

#include <Esplora.h>

void setup() {}

void loop()
{
 for(int i=0; i<256; i++)
 {
  Esplora.writeGreen(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.