Hello Everyone.
I am trying to manipulate through Mqtt the texts shown in a led panel 64x64, which is as follows,
Using an ArduinoMega2560, I have an Ethernet w5100 shield and an ethernet card wiznet w5500, I have used both with their respective libraries Ethernet.h and Ethernet2.h, the problem is that both shields use the mega D10 pin as SCS, like the LED panel, so which changes the pin CS of the led panel to D53 (also try to use A3), when I try to use my code to work together the led panel and the ethernet connection, I can make ethernet connection, but when receiving the MQTT messages, they arrive empty, There seems to be a conflict between the LED panel and the ethernet module, as each separate code works well.
#include <SPI.h>
#include <Ethernet2.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <DFRobot_RGBMatrix.h> // Hardware-specific library
#include <Wire.h>
#define OE 9
#define LAT 53
#define CLK 11
#define A A0
#define B A1
#define C A2
#define D A3
#define E A4
#define WIDTH 64
#define HIGH 64
DFRobot_RGBMatrix matrix(A, B, C, D, E, CLK, LAT, OE, false, WIDTH, HIGH);
also try changing the pin scs of the ethernet module (W5100 and w5500) from D10 to D53 and using the led panel in D10, but the result was the same.
I have been reading on the internet and it seems that I am not the first person to whom this problem has happened, however I can not find an explanation on how to solve it. I hope that someone in this forum can help me.
Thank you very much in advance.