Matrix::setBrightness()\ Matrix \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0023+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class | Matrix
Name | ### setBrightness()
Examples |
    #include "Binary.h"
    #include "Sprite.h"
    #include "Matrix.h"

    Matrix myMatrix = Matrix(0, 2, 1);

    void setup()
    {
      myMatrix.setBrightness(10);
    }

    void loop()
    {
      myMatrix.clear(); // clear display

      delay(1000);

      // turn some pixels on
      myMatrix.write(1, 5, HIGH);
      myMatrix.write(2, 2, HIGH);
      myMatrix.write(2, 6, HIGH);
      myMatrix.write(3, 6, HIGH);
      myMatrix.write(4, 6, HIGH);
      myMatrix.write(5, 2, HIGH);
      myMatrix.write(5, 6, HIGH);
      myMatrix.write(6, 5, HIGH);

      delay(1000);
    }
Description | The setBrightness() method sets the matrix display brightness. Values can be between 0 to 15.
Syntax |
    matrix.setBrightness(value)
Parameters |
value | The matrix brighness value
matrix | The Matrix object
Returns | None
Usage | Application

Updated on November 02, 2009 12:43:59am PST