Add uOLED-96-G1 C Sample Code.
[frickel.git] / projects / geeknamensschilder_c / hardware / libraries / Matrix / examples / hello_matrix / hello_matrix.pde
blob127917f0cb7b969288a99458d4fed5ba46950674
1 #include <Sprite.h>
2 #include <Matrix.h>
4 // Hello Matrix
5 // by Nicholas Zambetti <http://www.zambetti.com>
7 // Demonstrates the use of the Matrix library
8 // For MAX7219 LED Matrix Controllers
9 // Blinks welcoming face on screen
11 // Created 13 February 2006
13 /* create a new Matrix instance
14    pin 0: data  (din)
15    pin 1: load  (load)
16    pin 2: clock (clk)
18 Matrix myMatrix = Matrix(0, 2, 1);
20 void setup()
24 void loop()
26   myMatrix.clear(); // clear display
28   delay(1000);
30   // turn some pixels on
31   myMatrix.write(1, 5, HIGH);
32   myMatrix.write(2, 2, HIGH);
33   myMatrix.write(2, 6, HIGH);
34   myMatrix.write(3, 6, HIGH);
35   myMatrix.write(4, 6, HIGH);
36   myMatrix.write(5, 2, HIGH);
37   myMatrix.write(5, 6, HIGH);
38   myMatrix.write(6, 5, HIGH);
40   delay(1000);