FARLY7 / LEDMatrixDriver

MAX7219/MAX7221 LED Matrix Driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LEDMatrixDriver

A replacement for Arduino's LedControl library.

Features

  • Can drive more than 8 segments (limited only by memory)
  • Writing to the display is controlled by software
  • Much faster because it uses hardware SPI with soft SS
  • Can use an external memory or self-allocated buffer

Pin selection

Each segment of the display requires 16 bits and can all be shifted in at once. To make transfers faster we use hardware SPI instead of software.

The pins are therefore fixed:

  • MOSI is connected to DIN,
  • SCK is connected to CLK,
  • MISO can't be used (unless by other SPI device),
  • SS can't be used (we're not using the hardware pin).

The user has to select which pin to use for software SS but don't use any of the hardware SPI pins. Please check pin numbers specific for your hardware platform.

Contributors

  • Marko Oette - patches for Arduino AVR platform, example sketch
  • Søren Thing Andersen - support for 7-seg displays with examples
  • Scott Baker - examples clean-up
  • James Gohl - module reversal concept and some code, another example

About

MAX7219/MAX7221 LED Matrix Driver

License:MIT License


Languages

Language:C++ 100.0%