Skip to content

An Arduino library for MAX7219 and MAX7221 Led Matrix display drivers

License

Notifications You must be signed in to change notification settings

nopnop2002/Arduino-MatrixControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-MatrixControl

MatrixControl is an Arduino library for MAX7219 and MAX7221 Led Matrix display drivers.

Background

This library was developed based on this.
The original library also supports 8-segment LEDs, but this library does not support 8-segment LEDs.
Only supports cascaded 8x8 Led Matrix.

IMG_1784

Change from original

While the original library is highly versatile, the processing of cascaded LEDs is inefficient.
This library speeds up the processing of cascaded LEDs.

The original library used software SPI, but this library can use both software SPI and hardware SPI.

  • Software SPI(Default)
    #define BITBANG 1

  • Hardware SPI
    #define BITBANG 0

Processing time using LedControl-Scroll-FullSpeed

diffMillis[LedControl]=1973[ms]
diffMillis[LedControl]=1973[ms]
diffMillis[LedControl]=25565[ms]
diffMillis[LedControl]=25574[ms]

Processing time using MatrixControl-Scroll-FullSpeed

It's up to 23 times faster.

diffMillis[MatrixControl]=293[ms]
diffMillis[MatrixControl]=292[ms]
diffMillis[MatrixControl]=1093[ms]
diffMillis[MatrixControl]=1094[ms]

Documentation

Documentation for the library is on the Github Project Pages.
This library is compatible with the original library.

Install

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

Wiring

See source code.

Examples

  • MatrixControl_Basic
    For Basic Test. For compatibility verification.
  • LedControl-Scroll-FullSpeed
    Full speed scrolling with the LedControl library. For speed comparison.
  • MatrixControl-Scroll-FullSpeed
    Full speed scrolling with the MatrixControl library. For speed comparison. It ends in an instant.
  • MatrixControl-Scroll-RightToLeft
    Scroll from right to left using the MatrixControl library.
  • MatrixControl-Scroll-LeftToRight
    Scroll from left to right using the MatrixControl library.

Normal display

IMG_1776 IMG_1777 IMG_1778

Invert display

IMG_1779 IMG_1780

About

An Arduino library for MAX7219 and MAX7221 Led Matrix display drivers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages