Learning Arduino for beginners EP#33 max7219 LED Matrix display

In this tutorial we will take a look at using the max7219 LED Matrix displays with Arduino…

Check us out on Facebook!

Library’s:

MD_Parola

MD_MAX72XX

MD_MAX72XX.H FILE

How to modify the library video

Parts List:

affiliate links

ARDUINO Board

MAX7219 LED Matrix

ARDUINO Code:

int textSpeed = 50;
int text = “WELCOME TO THE Z-HUT”;
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#define MAX_DEVICES 4
#define CLK_PIN 13
#define DATA_PIN 11
#define CS_PIN 10
MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
const uint8_t DIRECTION_SET = 8; // change the effect
const uint8_t INVERT_SET = 9; // change the invert
uint8_t scrollSpeed = textSpeed;
textEffect_t scrollEffect = PA_SCROLL_LEFT;
textPosition_t scrollAlign = PA_LEFT;
uint16_t scrollPause = 10; // in milliseconds
#define BUF_SIZE 300
void setup()
{
Serial.begin(9600);
#if USE_UI_CONTROL
uiDirection.begin();
uiInvert.begin();
pinMode(SPEED_IN, INPUT);
doUI();
#endif // USE_UI_CONTROL
P.begin();
P.displayText(text, scrollAlign, scrollSpeed, scrollPause, scrollEffect, scrollEffect) ;
}

void loop()
{
if (P.displayAnimate())
{
P.displayReset();
}
}