You are on page 1of 1

CÓDIGO BASE PARA MAX7219 NO ESP32, ACESSANDO WI-FI

#include <NTPClient.h> //For NTP Time Sync


#include <WiFi.h> //For WiFi Network Connection
#include <WiFiUdp.h> //For WiFi UDP
#include <MD_Parola.h> //For MAX7219 Matrix LED
#include <MD_MAX72xx.h> //For MAX7219 SPI LED Driver
#include <SPI.h> //For SPI Communication
#include <time.h> //For Time Based Application

//Wi-Fi
#define SSID "SANDRAPC_2.4G" //Use your own WiFi SSID
#define WIFIKEY "sandra2325" //Ise your own WiFi Key
//NTP client
#define ntpServer "177.181.4.86" //NTP IP Address; Set your local NTP

//MAX7219
#define MAX_DEVICES 4 // four modules
#define DATA_PIN 19
#define CLK_PIN 18
#define CS_PIN 5
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW

// Hardware SPI connection


MD_Parola P = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);

You might also like