ماژول سون سگمنت 8 رقمی همراه با درایور Max7219
شماتیک اتصال به آردوینو :
کتابخانه راه اندازی در فایل ضمیمه قرار داده شده است .
نمونه کد :
	کد:
	
#include <HCMAX7219.h>
#include "SPI.h"
/* Set the LOAD (CS) digital pin number*/
#define LOAD 10
 
/* Create an instance of the library */
HCMAX7219 HCMAX7219(LOAD);
void setup() 
{        
}
/* Main program */
void loop() 
{
  /* Clear the output buffer */
  HCMAX7219.Clear();
  /* Write some text to the output buffer */
  HCMAX7219.print7Seg("HELLO 22",8);
  /* Send the output buffer to the display */
  HCMAX7219.Refresh();  
  
  while(1);
}