<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=MAX7219_SDK</id>
	<title>MAX7219 SDK - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=MAX7219_SDK"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=MAX7219_SDK&amp;action=history"/>
	<updated>2026-06-04T21:09:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=MAX7219_SDK&amp;diff=32445&amp;oldid=prev</id>
		<title>Chao: Created page with &quot;== Single Matrix Display ==   输入端：input end, 级联输出端： output end  === Introduction === thumbnail This product is a serially drive...&quot;</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=MAX7219_SDK&amp;diff=32445&amp;oldid=prev"/>
		<updated>2021-12-17T07:22:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Single Matrix Display ==   输入端：input end, 级联输出端： output end  === Introduction === &lt;a href=&quot;/w/File:LED_Matrix_Kit.jpg&quot; title=&quot;File:LED Matrix Kit.jpg&quot;&gt;thumbnail&lt;/a&gt; This product is a serially drive...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Single Matrix Display ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
输入端：input end, 级联输出端： output end&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
[[File:LED Matrix Kit.jpg|thumbnail]]&lt;br /&gt;
This product is a serially driven 8x8 LED Matrix kit powered by MAX7219.&lt;br /&gt;
&lt;br /&gt;
It only needs three data lines and two power lines. &lt;br /&gt;
&lt;br /&gt;
The 8x8 LED Matrix is easy to use and compatible with Arduino, and its LED brightness adjustment can be implemented in software.&lt;br /&gt;
&lt;br /&gt;
8x8 LED Matrix kit has many applications in real life, such as various types of electronic display panels. If the LED matrix is not driven by any peripherals, it’ll waste the interface of devices, and the LED brightness will be impaired due to insufficient power, so that we cannot get ideal display effect.&lt;br /&gt;
&lt;br /&gt;
The LED matrix can be driven in two ways: parallel or serial. We usually drive it in the serial manner in order to save interface. The serial-driven LED matrix actually dynamically displays the LEDs, i.e., displays the LEDs row-by-row or column-by-column. The persistence of vision for humans is about 0.1s, so as long as we can serially display all 8 rows/columns within 0.1s, we’ll see a complete character or pattern.&lt;br /&gt;
&lt;br /&gt;
This product comes in the form of a kit. It includes the following components:&lt;br /&gt;
&lt;br /&gt;
*MAX7219&lt;br /&gt;
&lt;br /&gt;
*Electrolytic cpaacitor：10uF/25V&lt;br /&gt;
&lt;br /&gt;
*Resistor：10K&lt;br /&gt;
&lt;br /&gt;
*Capacitance：0.1uF&lt;br /&gt;
&lt;br /&gt;
*Headers and receptacles. &lt;br /&gt;
&lt;br /&gt;
After assembling, it will look as:&lt;br /&gt;
&lt;br /&gt;
[[File:LED Matrix1.jpg | 200px]]&lt;br /&gt;
&lt;br /&gt;
===Specification of LED Matrix===&lt;br /&gt;
'''DIMENSIONS'''&lt;br /&gt;
[[File:Dimensions of led matrix.jpg|thumbnail]]&lt;br /&gt;
*Operating Voltage: DC 4.7V – 5.3V &lt;br /&gt;
&lt;br /&gt;
:Typical Voltage: 5V&lt;br /&gt;
&lt;br /&gt;
*Operating Current: 320mA&lt;br /&gt;
&lt;br /&gt;
:Max Operating Current: 2A&lt;br /&gt;
&lt;br /&gt;
*Operating Temperature: 0 ℃ – 50 ℃&lt;br /&gt;
&lt;br /&gt;
:Typical Temperature: 25 ℃&lt;br /&gt;
&lt;br /&gt;
===Wiring===&lt;br /&gt;
[[File:LED Matrix wiring.jpg|thumbnail]]&lt;br /&gt;
1.Wiring Instructions&amp;lt;br /&amp;gt;&lt;br /&gt;
:*Connect Arduino pin8 to DIN on 8x8 LED Matrix  &lt;br /&gt;
:*Connect Arduino pin9 to CS of 8x8 LED Matrix &lt;br /&gt;
:*Connect Arduino pin10 to CLK of 8x8 LED Matrix&lt;br /&gt;
:*Connect Arduino 5V to VCC of 8x8 LED Matrix&lt;br /&gt;
:*Connect Arduino GND to GND of 8x8 LED Matrix&lt;br /&gt;
''Attention：8*8LED Matrix must be common-grounded with Arduino module.''&lt;br /&gt;
2.Check the corresponding interfaces are properly connected. &amp;lt;br /&amp;gt;&lt;br /&gt;
3.Powering up the Arduino demo board with AC adapter.&amp;lt;br /&amp;gt;&lt;br /&gt;
4.Observation：The LED matrix should circularly display the digits 0 to 9 on LED screen first, then the characters A to Z, as shown in the above figure.&amp;lt;br /&amp;gt;&lt;br /&gt;
* Open Arduino development environment.&lt;br /&gt;
* Copy the source code we provide into Arduino compiler, and compile them.&lt;br /&gt;
* Select proper serial port and board.&lt;br /&gt;
* 4.Connect pins according to the schematics, and download codes into Arduino board. You’ll see the LED matrix circularly display the digits 0-9 and the characters A-Z.&lt;br /&gt;
&lt;br /&gt;
=== Demo Code ===&lt;br /&gt;
* [[:File:MAX7219_MCU51_demo_code.zip|MCU8051 Demo Code]]&lt;br /&gt;
* [http://playground.arduino.cc/LEDMatrix/Max7219 Direct Arduino - MAX7219 Documentation page.]&lt;br /&gt;
[[File:Led matrix demo pcduino.JPG|thumbnail]]&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;core.h&amp;quot;&lt;br /&gt;
unsigned char i;&lt;br /&gt;
unsigned char j; &lt;br /&gt;
int Max7219_pinCLK = 8;&lt;br /&gt;
int Max7219_pinCS = 9;&lt;br /&gt;
int Max7219_pinDIN = 10;&lt;br /&gt;
&lt;br /&gt;
unsigned char disp1[38][8] = &lt;br /&gt;
{&lt;br /&gt;
  {0x3C,0x42,0x42,0x42,0x42,0x42,0x42,0x3C},//0&lt;br /&gt;
  {0x10,0x30,0x50,0x10,0x10,0x10,0x10,0x10},//1&lt;br /&gt;
  {0x7E,0x2,0x2,0x7E,0x40,0x40,0x40,0x7E},//2&lt;br /&gt;
  {0x3E,0x2,0x2,0x3E,0x2,0x2,0x3E,0x0},//3&lt;br /&gt;
  {0x8,0x18,0x28,0x48,0xFE,0x8,0x8,0x8},//4&lt;br /&gt;
  {0x3C,0x20,0x20,0x3C,0x4,0x4,0x3C,0x0},//5&lt;br /&gt;
  {0x3C,0x20,0x20,0x3C,0x24,0x24,0x3C,0x0},//6&lt;br /&gt;
  {0x3E,0x22,0x4,0x8,0x8,0x8,0x8,0x8},//7&lt;br /&gt;
  {0x0,0x3E,0x22,0x22,0x3E,0x22,0x22,0x3E},//8&lt;br /&gt;
  {0x3E,0x22,0x22,0x3E,0x2,0x2,0x2,0x3E},//9&lt;br /&gt;
  {0x8,0x14,0x22,0x3E,0x22,0x22,0x22,0x22},//A&lt;br /&gt;
  {0x3C,0x22,0x22,0x3E,0x22,0x22,0x3C,0x0},//B&lt;br /&gt;
  {0x3C,0x40,0x40,0x40,0x40,0x40,0x3C,0x0},//C&lt;br /&gt;
  {0x7C,0x42,0x42,0x42,0x42,0x42,0x7C,0x0},//D&lt;br /&gt;
  {0x7C,0x40,0x40,0x7C,0x40,0x40,0x40,0x7C},//E&lt;br /&gt;
  {0x7C,0x40,0x40,0x7C,0x40,0x40,0x40,0x40},//F&lt;br /&gt;
  {0x3C,0x40,0x40,0x40,0x40,0x44,0x44,0x3C},//G&lt;br /&gt;
  {0x44,0x44,0x44,0x7C,0x44,0x44,0x44,0x44},//H&lt;br /&gt;
  {0x7C,0x10,0x10,0x10,0x10,0x10,0x10,0x7C},//I&lt;br /&gt;
  {0x3C,0x8,0x8,0x8,0x8,0x8,0x48,0x30},//J&lt;br /&gt;
  {0x0,0x24,0x28,0x30,0x20,0x30,0x28,0x24},//K&lt;br /&gt;
  {0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x7C},//L&lt;br /&gt;
  {0x81,0xC3,0xA5,0x99,0x81,0x81,0x81,0x81},//M&lt;br /&gt;
  {0x0,0x42,0x62,0x52,0x4A,0x46,0x42,0x0},//N&lt;br /&gt;
  {0x3C,0x42,0x42,0x42,0x42,0x42,0x42,0x3C},//O&lt;br /&gt;
  {0x3C,0x22,0x22,0x22,0x3C,0x20,0x20,0x20},//P&lt;br /&gt;
  {0x1C,0x22,0x22,0x22,0x22,0x26,0x22,0x1D},//Q&lt;br /&gt;
  {0x3C,0x22,0x22,0x22,0x3C,0x24,0x22,0x21},//R&lt;br /&gt;
  {0x0,0x1E,0x20,0x20,0x3E,0x2,0x2,0x3C},//S&lt;br /&gt;
  {0x0,0x3E,0x8,0x8,0x8,0x8,0x8,0x8},//T&lt;br /&gt;
  {0x42,0x42,0x42,0x42,0x42,0x42,0x22,0x1C},//U&lt;br /&gt;
  {0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18},//V&lt;br /&gt;
  {0x0,0x49,0x49,0x49,0x49,0x2A,0x1C,0x0},//W&lt;br /&gt;
  {0x0,0x41,0x22,0x14,0x8,0x14,0x22,0x41},//X&lt;br /&gt;
  {0x41,0x22,0x14,0x8,0x8,0x8,0x8,0x8},//Y&lt;br /&gt;
  {0x0,0x7F,0x2,0x4,0x8,0x10,0x20,0x7F},//Z&lt;br /&gt;
  {0x8,0x7F,0x49,0x49,0x7F,0x8,0x8,0x8},// {0xFE,0xBA,0x92,0xBA,0x92,0x9A,0xBA,0xFE},&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
void Write_Max7219_byte(unsigned char DATA) &lt;br /&gt;
{   &lt;br /&gt;
          unsigned char i;&lt;br /&gt;
	  digitalWrite(Max7219_pinCS,LOW);		&lt;br /&gt;
	  for(i=8;i&amp;gt;=1;i--)&lt;br /&gt;
          {		  &lt;br /&gt;
             digitalWrite(Max7219_pinCLK,LOW);&lt;br /&gt;
             if((DATA&amp;amp;0x80)==0x80)  digitalWrite(Max7219_pinDIN,HIGH);&lt;br /&gt;
             else                    digitalWrite(Max7219_pinDIN,LOW);     &lt;br /&gt;
             DATA = DATA&amp;lt;&amp;lt;1;&lt;br /&gt;
             digitalWrite(Max7219_pinCLK,HIGH);&lt;br /&gt;
          }                                 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void Write_Max7219(unsigned char address,unsigned char dat)&lt;br /&gt;
{&lt;br /&gt;
        digitalWrite(Max7219_pinCS,LOW);&lt;br /&gt;
        Write_Max7219_byte(address);              &lt;br /&gt;
        Write_Max7219_byte(dat);              &lt;br /&gt;
        digitalWrite(Max7219_pinCS,HIGH);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void Init_MAX7219(void)&lt;br /&gt;
{&lt;br /&gt;
       Write_Max7219(0x09, 0x00);       &lt;br /&gt;
       Write_Max7219(0x0a, 0x03);       &lt;br /&gt;
       Write_Max7219(0x0b, 0x07);       &lt;br /&gt;
       Write_Max7219(0x0c, 0x01);      &lt;br /&gt;
       Write_Max7219(0x0f, 0x00);      &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(11,OUTPUT);&lt;br /&gt;
  pinMode(12,OUTPUT);&lt;br /&gt;
  digitalWrite(11,LOW);&lt;br /&gt;
  digitalWrite(12,HIGH);&lt;br /&gt;
  pinMode(Max7219_pinCLK,OUTPUT);&lt;br /&gt;
  pinMode(Max7219_pinCS,OUTPUT);&lt;br /&gt;
  pinMode(Max7219_pinDIN,OUTPUT);&lt;br /&gt;
  delay(50);&lt;br /&gt;
  Init_MAX7219();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{ &lt;br /&gt;
   for(j=0;j&amp;lt;38;j++)&lt;br /&gt;
  {&lt;br /&gt;
   for(i=1;i&amp;lt;9;i++)&lt;br /&gt;
    Write_Max7219(i,disp1[j][i-1]);&lt;br /&gt;
   delay(500);&lt;br /&gt;
  } 		&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Documents ===&lt;br /&gt;
*[https://s3.amazonaws.com/linksprite/Arduino_kits/LEDmatrixkit/LED_Martix_Kit_User_Guide_V2.pdf User Guide]&lt;br /&gt;
* [http://www.youtube.com/watch?v=9bibBdj7MyQ See the demo video here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: MAX7219]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>