/* Written by: Zuzanna Last update: 1st March 2024. This file contains code for Rewise GFG Steelworks Retrofit - Support Office Sector. Lookout for line with star symbol or // - these are comments that are here to guide you through the code. -------------------------- These are wiring instructions (sensor -> arduino) -------------------------- Display - Arduino Nano GND -> GND 5V -> 5V DIN -> Pin 11 CS -> Pin 10 CLK -> Pin 13 */ //------------------ LIBRARIES ------------------ #include #include // Uncomment according to your hardware type //#define HARDWARE_TYPE MD_MAX72XX::ICSTATION_HW //#define HARDWARE_TYPE MD_MAX72XX::GENERIC_HW #define HARDWARE_TYPE MD_MAX72XX::FC16_HW //------------------ VARIABLES ------------------ #define MAX_DEVICES 4 #define CS_PIN 10 #define DATA_PIN 11 #define CLK_PIN 13 //------------------ CREATING INSTANCES ------------------ MD_Parola myDisplay = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES); //------------------------ VOID SETUP()------------------------ void setup() { // Intialize the object myDisplay.begin(); // Set the intensity (brightness) of the display (0-15) myDisplay.setIntensity(5); // Clear the display myDisplay.displayClear(); myDisplay.displayScroll("LIBERTY Galati", PA_LEFT, PA_SCROLL_LEFT, 50); // Change text in the quotation marks to change the message } //------------------------ VOID LOOP()------------------------ void loop() { if (myDisplay.displayAnimate()) { myDisplay.displayReset(); } }