Skip to content

An Arduino library for MAX7219 and MAX7221 Led display drivers Modified for hardware SPI. 20x speed increase

License

Notifications You must be signed in to change notification settings

jacken/LedControl_HW_SPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LedControl

LedControl is an Arduino library for MAX7219 and MAX7221 Led display drivers. The code also works with the Teensy (3.1)

Modified by Jack Zimmermann for supporting hardware SPI using the predefined MOSI and SCK pins on supported devices.

This is a modified version using hardware SPI calls instead of bit banging. Speed increase is 20x or greater.

Usage

You need to use the assigned hardware SPI pins on your Arduino. Se table for correct pins. Some Arduinos doesn't have the SCK pin so this library won't work on those. The Chip Select(csPin) can be any pin you like, except one of the aforementioned pins. The new initialisation only needs the csPin and number of devices. LedControl::LedControl(int csPin, int numDevices)

Pin Assignments

Arduino Board MOSI MISO SCK SS (Slave) SS (Master)
Uno or Duemilanove 11 or ICSP-4 12 or ICSP-1 13 or ICSP-3 10 -
Mega1280 or Mega2560 51 or ICSP-4 50 or ICSP-1 52 or ICSP-3 53 -
Leonardo ICSP-4 ICSP-1 ICSP-3 - -
Due ICSP-4 ICSP-1 ICSP-3 - 4, 10, 52
Deek-Robot Arduino 11 12 13 - 10

Documentation

Documentation for the library is on the Github Project Pages

Download

The lastest binary version of the Library is always available from the LedControl Release Page

Install

The library can be installed using the standard Arduino library install procedure

About

An Arduino library for MAX7219 and MAX7221 Led display drivers Modified for hardware SPI. 20x speed increase

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%