Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 910 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 910 Bytes

Max72XX

CircleCI Hex version Hex docs

Max72XX is a library for driving arrays of MAX72XX as a pixel device.

Demo

Setup

Add the library to your mix.exs deps:

def deps do
  [
    {:max_72xx, "~> 0.1.0"}
  ]
end

Run mix deps.get to download the new dependency.

Usage

  1. Connect the array to the SPI (There are many guides on Internet)

  2. Start the driver

{:ok, ref} <- Max72XX.Array.start_link("spidev0.0", 4)
  1. Draw pixels and update the matrix
Max72XX.Array.set_pixel(ref, x, y)
...
Max72XX.Array.update(ref)