Search wiring.org.co:

Reference for Wiring version 0024+. 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.

Name | ### Matrix
Examples |
    #include "Binary.h"
    #include "Sprite.h"
    #include "Matrix.h"

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

    void setup()
    {

    }

    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 Matrix library allows for writing data to a external LED matrix display using the MAX7219 matrix controller.
Syntax |
    Matrix(data, clock, load)
Methods |
clear() |
setBrightness() |
write() |
Parameters |
data | The pin connected to the Data line on the controller
clock | The pin connected to the Clock line on the controller
load | The pin connected to the Load line on the controller
Returns | None
Usage | Application

Updated on November 01, 2009 12:48:53am PDT