Skip to content

Latest commit

 

History

History
executable file
·
67 lines (44 loc) · 2.33 KB

README.md

File metadata and controls

executable file
·
67 lines (44 loc) · 2.33 KB

MAX7219 7 Segment Readme

 max image

Table of contents

Overview

  • Name: MAX7219

  • Author: Gavin Lyons.

  • Description: A Raspberry pi library to display data on a 8-digit MAX7219 seven segment module. Dynamic install-able system level Raspberry Pi C++ library. Hardware or software SPI, Shutdown mode, test mode and Brightness control supported.

Software

File system

Example files list:

List No Example file name Description SPI type
1 src/TESTS/main.cpp test sequence software
2 src/HELLOWORLD/main.cpp Hello world hardware & software user adjust
3 src/BCDMODE/main.cpp Shows use of BCD built-in font hardware
4 src/CLOCK_DEMO/main.cpp Clock demo , Shows use of cascaded displays hardware
5 src/CASCADE_DEMO/main.cpp simple Demo showing use of cascaded displays hardware

Hardware

For Software SPI Pick any GPIO you want. For Hardware SPI the User must use fixed SPI pins SPIMOSI and SPISCLK, user can choice between SPICE0 and SPICE1 for chip select. The Datasheet says it's a 10MHZ device, In hardware SPI user can pick SPI bus speed. In software SPI user may need to increase or decrease CommDelay variable (uS Communication delay) depending on speed of CPU on system. User can adjust brightness from 0x00 to 0x0f by default it is 0x08. 0x0f being brightest

Connections to RPI:

Pin no RPI SW SPI RPI HW SPI Pin function
1 any GPIO output SPISCLK CLK = Clock
2 any GPIO output SPICE0 or SP1CE1 CS = Chip select
3 any GPIO output SPIMOSI DIN = Data in

VCC 5V in theory but works at 3.3V in testing, albeit with a dimmer display. Logic seems to work fine at 3.3V , It safe as it is all one way communications From RPI to MAX.

Notes and Issues

Cascaded Displays

Support for Cascaded Displays added is untested as only one display available. Casacded Displays are displays connected together. Din-> Dout and CS lines tied together.