Sunday, April 9, 2017

MAX7219 Library for 8-bit AVR

Hi friends!
Yesterday I've got my 32x8 matrix module from Aliexpress.
I don't understand need of C++ usage in low-memory chips (most of all I'm using Attiny2313, Atmega48 and Atmega88), so I decided to write my own C library for 8-bit AVR's.

Because I have matrix module, digit mode for MAX chips was not tested.

Features:

  • Per-pixel draw
  • Simple buffer scroll function
  • String render (latin+cyrillic variable character width font included)
  • Easy to implement text scroll
  • Support for both Flash and RAM string sources

Please note: library uses alpha version of AVR SPI library based on Stefan Engelke's code (included). Software and USI SPI not tested.

Here is Atmel Studio 6.2 project:
Download from Google Drive

2 comments:

  1. Hello. How to flip the output of characters 90 degrees, experimenting with the function max7219_commit,
    did not work, please help

    ReplyDelete
  2. Necroposting, heh) max7219_commit just flush memory buffer to IC's array. For transformations you have to modify character render function.

    ReplyDelete