Module 3 - Light up some dots

Meet Matrix:  Matrix is a new character on the Island of PodPi.  She represents a 8 x 8 LED matrix device that can be used to display pixel art and small animated pixel art.

What is a Matrix?

A Matrix has 64 small LEDs arranged in a grid of 8 rows and 8 columns.  Each LED can be controlled independently.  There is a special microchip that handles all the work from communication to display of each LED.

How does it work?

Each single LED is connected at a row and column intersection.  When a high signal (1) is present on a row and a low signal (0) is present on a column, the LED at that intersection will light up because of the difference in voltage.

No resistors are necessary - all resistors are in the microchip already.

You can send commands to control single LEDs and the microchip is responsible for coordinating all LEDs.  This particular matrix uses the I2C protocol (also called Two Wires Interface) to receive the commends from the Arduino board.

Your code

This simple code will get you to display some dots on the matrix.  Make some interesting patterns and email them to me at

var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {

  var matrix = new five.Led.Matrix({
    addresses: [0x70],
    controller: "HT16K33"

  // replace the 3 lines below 
  // with your own pattern
  // continue your pattern below