Code Working with ESP 32 - Wroom 32 but not with ESP 32 - C-6 board

vivek2810
Posts: 1
Joined: Fri Jan 17, 2025 4:32 am

Code Working with ESP 32 - Wroom 32 but not with ESP 32 - C-6 board

Postby vivek2810 » Fri Jan 17, 2025 12:46 pm

Hi All,

I'm doing a project to display text/graphics on my MAX7219 led matrix display panel.
It works perfectly well with Wroom 32 board, but when I change to C-6 board, it doesn't work.
(I'm in the process of migrating my work to C-6 board).

1. I have connected to the GPIO pins of the C-6 board that sends SPI signals to the display panel.
Hence, No issues with the h/w connections.
2. I suspect if it is an library issue.

New board : ESP 32 C6- Wroom-1 N8 (32 pin board)
Old board : ESP 32 Wroom - 32 (30 pin board)

Help me to resolve the same.

Code as below :

---------------------------------------------------------------------------------------

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Max72xxPanel.h>

const int pinCS = 5;
// CLK - GPIO 4 (For C-6 Board)
// DIN - GPIO 6 (For C-6 Board)
const int numberOfHorizontalDisplays = 4;
const int numberOfVerticalDisplays = 1;

Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);

void setup()
{

initializeMatrix();
displayStaticText("Hello!");

}
void loop()
{

}

void initializeMatrix()
{
matrix.setIntensity(15); // Adjust the brightness between 0 and 15
for (int i = 0; i < numberOfHorizontalDisplays; i++)
{
matrix.setPosition(i, i, 0); // Set positions for all displays. First i is the index, second i is the horizontal panel and third is the vertical panel
matrix.setRotation(i, 1); // Set rotation for all displays
}
}

void displayStaticText(String text)
{
matrix.fillScreen(LOW);
matrix.setCursor(1, 0);
matrix.print(text);
matrix.write();
}

--------------------------------------------------------------------------------------------------------------------------------------

ahsrabrifat
Posts: 23
Joined: Sat Jan 18, 2025 2:31 pm

Re: Code Working with ESP 32 - Wroom 32 but not with ESP 32 - C-6 board

Postby ahsrabrifat » Sat Jan 18, 2025 2:48 pm

Are you selecting the correct board from the ESP32 boards list?

Who is online

Users browsing this forum: Google [Bot] and 54 guests