Handson Technology MAX7218 User Manual Download Page 6

www.handsontec.com 

 

  

4

,

 

8

,

 B01000110

,

 B01001001

,

 B01001001

,

 B00110010

,

 B00000000

,

 

// S 

  

5

,

 

8

,

 B00000001

,

 B00000001

,

 B01111111

,

 B00000001

,

 B00000001

,

 

// T 

  

4

,

 

8

,

 B00111111

,

 B01000000

,

 B01000000

,

 B00111111

,

 B00000000

,

 

// U 

  

5

,

 

8

,

 B00001111

,

 B00110000

,

 B01000000

,

 B00110000

,

 B00001111

,

 

// V 

  

5

,

 

8

,

 B00111111

,

 B01000000

,

 B00111000

,

 B01000000

,

 B00111111

,

 

// W 

  

5

,

 

8

,

 B01100011

,

 B00010100

,

 B00001000

,

 B00010100

,

 B01100011

,

 

// X 

  

5

,

 

8

,

 B00000111

,

 B00001000

,

 B01110000

,

 B00001000

,

 B00000111

,

 

// Y 

  

4

,

 

8

,

 B01100001

,

 B01010001

,

 B01001001

,

 B01000111

,

 B00000000

,

 

// Z 

  

2

,

 

8

,

 B01111111

,

 B01000001

,

 B00000000

,

 B00000000

,

 B00000000

,

 

// [ 

  

4

,

 

8

,

 B00000001

,

 B00000110

,

 B00011000

,

 B01100000

,

 B00000000

,

 

// \ backslash 

  

2

,

 

8

,

 B01000001

,

 B01111111

,

 B00000000

,

 B00000000

,

 B00000000

,

 

// ] 

  

3

,

 

8

,

 B00000010

,

 B00000001

,

 B00000010

,

 B00000000

,

 B00000000

,

 

// hat 

  

4

,

 

8

,

 B01000000

,

 B01000000

,

 B01000000

,

 B01000000

,

 B00000000

,

 

// _ 

  

2

,

 

8

,

 B00000001

,

 B00000010

,

 B00000000

,

 B00000000

,

 B00000000

,

 

// ` 

  

4

,

 

8

,

 B00100000

,

 B01010100

,

 B01010100

,

 B01111000

,

 B00000000

,

 

// a 

  

4

,

 

8

,

 B01111111

,

 B01000100

,

 B01000100

,

 B00111000

,

 B00000000

,

 

// b 

  

4

,

 

8

,

 B00111000

,

 B01000100

,

 B01000100

,

 B00101000

,

 B00000000

,

 

// c 

  

4

,

 

8

,

 B00111000

,

 B01000100

,

 B01000100

,

 B01111111

,

 B00000000

,

 

// d 

  

4

,

 

8

,

 B00111000

,

 B01010100

,

 B01010100

,

 B00011000

,

 B00000000

,

 

// e 

  

3

,

 

8

,

 B00000100

,

 B01111110

,

 B00000101

,

 B00000000

,

 B00000000

,

 

// f 

  

4

,

 

8

,

 B10011000

,

 B10100100

,

 B10100100

,

 B01111000

,

 B00000000

,

 

// g 

  

4

,

 

8

,

 B01111111

,

 B00000100

,

 B00000100

,

 B01111000

,

 B00000000

,

 

// h 

  

3

,

 

8

,

 B01000100

,

 B01111101

,

 B01000000

,

 B00000000

,

 B00000000

,

 

// i 

  

4

,

 

8

,

 B01000000

,

 B10000000

,

 B10000100

,

 B01111101

,

 B00000000

,

 

// j 

  

4

,

 

8

,

 B01111111

,

 B00010000

,

 B00101000

,

 B01000100

,

 B00000000

,

 

// k 

  

3

,

 

8

,

 B01000001

,

 B01111111

,

 B01000000

,

 B00000000

,

 B00000000

,

 

// l 

  

5

,

 

8

,

 B01111100

,

 B00000100

,

 B01111100

,

 B00000100

,

 B01111000

,

 

// m 

  

4

,

 

8

,

 B01111100

,

 B00000100

,

 B00000100

,

 B01111000

,

 B00000000

,

 

// n 

  

4

,

 

8

,

 B00111000

,

 B01000100

,

 B01000100

,

 B00111000

,

 B00000000

,

 

// o 

  

4

,

 

8

,

 B11111100

,

 B00100100

,

 B00100100

,

 B00011000

,

 B00000000

,

 

// p 

  

4

,

 

8

,

 B00011000

,

 B00100100

,

 B00100100

,

 B11111100

,

 B00000000

,

 

// q 

  

4

,

 

8

,

 B01111100

,

 B00001000

,

 B00000100

,

 B00000100

,

 B00000000

,

 

// r 

  

4

,

 

8

,

 B01001000

,

 B01010100

,

 B01010100

,

 B00100100

,

 B00000000

,

 

// s 

  

3

,

 

8

,

 B00000100

,

 B00111111

,

 B01000100

,

 B00000000

,

 B00000000

,

 

// t 

  

4

,

 

8

,

 B00111100

,

 B01000000

,

 B01000000

,

 B01111100

,

 B00000000

,

 

// u 

  

5

,

 

8

,

 B00011100

,

 B00100000

,

 B01000000

,

 B00100000

,

 B00011100

,

 

// v 

  

5

,

 

8

,

 B00111100

,

 B01000000

,

 B00111100

,

 B01000000

,

 B00111100

,

 

// w 

  

5

,

 

8

,

 B01000100

,

 B00101000

,

 B00010000

,

 B00101000

,

 B01000100

,

 

// x 

  

4

,

 

8

,

 B10011100

,

 B10100000

,

 B10100000

,

 B01111100

,

 B00000000

,

 

// y 

  

3

,

 

8

,

 B01100100

,

 B01010100

,

 B01001100

,

 B00000000

,

 B00000000

,

 

// z 

  

3

,

 

8

,

 B00001000

,

 B00110110

,

 B01000001

,

 B00000000

,

 B00000000

,

 

// { 

  

1

,

 

8

,

 B01111111

,

 B00000000

,

 B00000000

,

 B00000000

,

 B00000000

,

 

// | 

  

3

,

 

8

,

 B01000001

,

 B00110110

,

 B00001000

,

 B00000000

,

 B00000000

,

 

// } 

  

4

,

 

8

,

 B00001000

,

 B00000100

,

 B00001000

,

 B00000100

,

 B00000000

,

 

// ~ 

};

 

 

int

 DIN 

=

 

7

;

   

// DIN pin of MAX7219 module 

int

 CLK 

=

 

6

;

   

// CLK pin of MAX7219 module 

int

 CS 

=

 

5

;

    

// CS pin of MAX7219 module 

int

 maxInUse 

=

 

2

;

 

 
MaxMatrix m

(

DIN

,

 CS

,

 CLK

,

 maxInUse

);

 

 
byte buffer

[

10

];

 

 

char

 text

[]=

 

"Handson Technology  "

;

 

// Scrolling text 

 

void

 setup

()

 

{

 

  m

.

init

();

 

// module initialize 

  m

.

setIntensity

(

15

);

 

// dot matix intensity 0-15 

}

 

 

void

 loop

()

 

{

 

 
  printStringWithShift

(

text

,

 

100

);

 

// (text, scrolling speed) 

Summary of Contents for MAX7218

Page 1: ...ays panel to be built A convenient 3 wire serial interface connects to all common controller board like Arduino or Raspberry Individual dot may be addressed and updated without rewriting the entire di...

Page 2: ...2 www handsontec com MAX7291 Module Matrix Connection Arduino Connection Examples Now let s connect the 8 8 LED Matrix module to the Arduino Board Here s the circuit schematic...

Page 3: ...9 Example 01 Based on the following library GitHub riyas org max7219 https github com riyas org max7219 include MaxMatrix h int DIN 7 DIN pin of MAX7219 module int CLK 6 CLK pin of MAX7219 module int...

Page 4: ...6 2 true delay 1000 m setDot 6 3 true delay 1000 m clear Clears the display for int i 0 i 8 i m setDot i i true delay 300 m clear Displaying the character at x y upper left corner of the character m w...

Page 5: ...0100 B00010010 B01111111 B00000000 4 4 8 B00100111 B01000101 B01000101 B00111001 B00000000 5 4 8 B00111110 B01001001 B01001001 B00110000 B00000000 6 4 8 B01100001 B00010001 B00001001 B00000111 B000000...

Page 6: ...B01000000 B10000000 B10000100 B01111101 B00000000 j 4 8 B01111111 B00010000 B00101000 B01000100 B00000000 k 3 8 B01000001 B01111111 B01000000 B00000000 B00000000 l 5 8 B01111100 B00000100 B01111100 B...

Page 7: ...buffer CH 7 c 7 m writeSprite 32 0 buffer m setColumn 32 buffer 0 0 for int i 0 i buffer 0 1 i delay shift_speed m shiftLeft false false Extract the characters from the text string void printStringWit...

Reviews: