64x64 MATRIX LED PROBLEM WITH ARDUINO MEGA 2560
Hi!
I get a 64x64 Matrix Led Panel and a Arduino Mega 2560. In theory connection diagram is correct. When I use:
matrix.fillRect(0, 0, matrix.width(), matrix.height(), matrix.Color333(0, 7, 0));
The result is:
I can not find the problem. Can you help me?
Than a lot!!
I use the example code:
/*!
* @file testRGBMatrix.ino
* @brief Run the routine to test the RGB LED Matrix Panel
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @license The MIT License (MIT)
* @author [TangJie]]([email protected])
* @version V1.0.1
* @date 2022-03-23
* @url https://github.com/DFRobot/DFRobot_RGBMatrix
*/
#include <DFRobot_RGBMatrix.h> // Hardware-specific library
#define OE 9
#define LAT 10
#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);
void setup() {
matrix.begin();
// draw a pixel in solid white
matrix.drawPixel(0, 0, matrix.Color333(7, 7, 7));
delay(1500);
// fix the screen with green
matrix.fillRect(0, 0, matrix.width(), matrix.height(), matrix.Color333(0, 7, 0));
….
…
…
It's great that you found the correct LED panel and ordered it from a reliable source. The SMD2121 LED panel is likely a different model than the DFR0499, and compatibility may vary with the Arduino Mega and DFRobot libraries.
Generally, different LED panels might require different libraries, pin configurations, and communication protocols. It's a good idea to refer to the documentation or datasheet provided by the manufacturer for the SMD2121 panel. This documentation should outline the required connections, communication protocol (such as SPI or I2C), and any necessary libraries or code examples.
fertooosThe user navigates a randomly generated world in <a href="https://contextogame.io">contexto game</a> , which is a straightforward take on the clicker genre of games. Each time a new game is started, the map is produced in a random fashion.
lee.merrrty9680I found it. My led panel isn't DFR0499, it's SMD2121. It's a similar product but I couldn't get run. I bought the correct DFR0499 led panel I will try when arrives from dfrobot partner at Spain (mouser.es).
I don't know if SMD2121 can be used with Arduino mega and dfrobot library but I can imagine it isn't the correct forum to ask it.
Thanks
Jordi.Targa