Matrix Led problem

I have a problem with my arduino uno r4 wifi:
#include "Arduino_LED_Matrix.h"

ArduinoLEDMatrix matrix;

void setup() {
Serial.begin(11520000);
matrix.begin();
}

const uint32_t pacman[6][4] = {
{ 0xf01d,
0x83e03c03,
0xe01f80f0,
66 },
{ 0xf01d,
0x83e03e03,
0xe01f80f0,
66 },
{ 0xf01d,
0x83f03e03,
0xf01f80f0,
66 },
{ 0xf01d,
0x83f03f03,
0xf01f80f0,
66 },
{ 0xf01d,
0x83fc3f03,
0xfc1f80f0,
66 },
{ 0xf01d,
0x83fc3fc3,
0xfc1f80f0,
66 }
};

void loop() {
matrix.loadFrame(pacman)
}

And this is my error message:
C:\Users\Vanes\AppData\Local\Temp.arduinoIDE-unsaved2024926-15324-1hteqhn.y7tkl\sketch_oct26a\sketch_oct26a.ino: In function 'void loop()':
C:\Users\Vanes\AppData\Local\Temp.arduinoIDE-unsaved2024926-15324-1hteqhn.y7tkl\sketch_oct26a\sketch_oct26a.ino:38:26: error: no matching function for call to 'ArduinoLEDMatrix::loadFrame(const uint32_t [6][4])'
matrix.loadFrame(pacman)
^
In file included from C:\Users\Vanes\AppData\Local\Temp.arduinoIDE-unsaved2024926-15324-1hteqhn.y7tkl\sketch_oct26a\sketch_oct26a.ino:1:0:
C:\Users\Vanes\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.2.2\libraries\Arduino_LED_Matrix\src/Arduino_LED_Matrix.h:204:10: note: candidate: void ArduinoLEDMatrix::loadFrame(const uint32_t*)
void loadFrame(const uint32_t buffer[3]){
^~~~~~~~~
C:\Users\Vanes\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.2.2\libraries\Arduino_LED_Matrix\src/Arduino_LED_Matrix.h:204:10: note: no known conversion for argument 1 from 'const uint32_t [6][4] {aka const long unsigned int [6][4]}' to 'const uint32_t* {aka const long unsigned int*}'

exit status 1

Compilation error: no matching function for call to 'ArduinoLEDMatrix::loadFrame(const uint32_t [6][4])'

Does someone know how to fix this error?

too many zeros

needs semicolon, like:
matrix.loadFrame(pacman);

Neither may fix your problem, but they are errors nonetheless.

The error message suggests you've misspelled the name of the function being called. Check the examples for the library, perhaps there's an example you can compare to.

Yes, It's true, I was touching, but how many zeros do i have to write?

115200 is the usual baud rate. How can you type that, but not be looking at something to copy from?

It says the same.

Read the rest of my message.

When you get back here, please read about code tags, and how to use them:

then insert your newest code in a new message. DO NOT backedit your first message, no one will see it change, and you will likely be ignored.

matrix.loadFrame(pacman);

Yes, I'm copying it

nothing

try
matrix.loadFrame((uint32_t*) pacman);

2 Likes

Thank you, now it shows the pac-man but I want it to show the animation. How should I do that?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.