A generic library to support Max7221 chip for 8 digit 7 segment displays

Dependencies:   mbed

Dependents:   Example_Max7221

MAXIM SPI interfaced, 8 digit LED display Driver

MAX221

  • The image below was my initial development setup. The top of the image shows a wire wrap connection to a Max7221 to an 8 digit 7 segment display.
  • The small board below it is the new max7221 board that was created with surface mount chips and using a toaster oven to do reflow soldering. /media/uploads/jakowisp/img_0012.jpg

Example of using a single Max7221 on SPI p5,p6,p7

Import program

00001  #include "mbed.h"
00002  #include "Max7221.h"
00003  
00004 
00005 // p5: DIN, p7: CLK, p8: LOAD/CS
00006 Max7221 max7221disp1(p5, p7, p8);
00007 //Max7221 max7221disp2(p5, p7, p8);
00008 //Max7221 max7221disp3(p11, p13, p14);
00009 //Max7221 max7221disp4(p11, p13, p14);
00010 
00011 int count=-99;
00012 
00013 void loop(void) {
00014    max7221disp1=count;
00015    if (count < 100)
00016       count=count+1;
00017    else 
00018       count=-99; 
00019 }
00020 
00021 int main() {  
00022     max7221disp1.Setup();
00023     //Max7221::SetupALl();
00024     max7221disp1.WriteFloat(123.125);
00025     wait(1.0);  
00026 
00027     while (1) {
00028         loop();
00029         wait(1.0);
00030     }
00031 }
00032 
00033 

History

Correct the Doxygen generation for the class. default tip

2013-08-07, by jakowisp [Wed, 07 Aug 2013 03:07:01 +0000] rev 4

Correct the Doxygen generation for the class.


Fix Library file locations

2013-08-07, by jakowisp [Wed, 07 Aug 2013 02:34:59 +0000] rev 3

Fix Library file locations


Added Comments for publication.

2013-08-07, by jakowisp [Wed, 07 Aug 2013 02:15:17 +0000] rev 2

Added Comments for publication.


Library mostly complete. Need to clean up code and document.

2013-08-06, by jakowisp [Tue, 06 Aug 2013 08:18:53 +0000] rev 1

Library mostly complete. Need to clean up code and document.


Fully functional target board.

2013-08-05, by jakowisp [Mon, 05 Aug 2013 18:08:30 +0000] rev 0

Fully functional target board.