// this module interacts with the hardware on lower level
#include <MD_MAX72xx.h>
// I library allows you to communicate with other devices, with Arduino as
// the master device. helps us communicate meaningfully so that others can
// understand us better.
#include <SPI.h>
const byte clock_pin = 13;
const byte data_pin = 11;
const byte chip_select_pin = 10;
//hold the number of displays we will be using.
const byte max_devices = 1;
/* creating instance of MD_Parola class :
Hardware type : PAROLA_HW
Max devices : number of devices we are using */
MD_MAX72XX matrix = MD_MAX72XX(MD_MAX72XX::PAROLA_HW, chip_select_pin, max_devices);
void setup()
{
matrix.begin(); // initialise the module
matrix.clear(); // clear, if there is anything
}
void loop()
{
matrix.setPoint(1,5,true); //light up the led @ row with index 0 and column with index
}