-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I have been trying to display a dot and a char on this P8 32x16 1/4 scan rgb matrix panel, but not succeeded. I am using blue pill and arduino IDE and STLink to burn the program. Sometimes, the matrix shows garbage pixels lit and sometimes it is totally blank. I have connected pins as:
R0- PA0 G0-PA1
B0- PA2 GND-GND
R1- PA3 G1-PA4
B1- PA5 GND-GND
A- PB6 B-PB5
C- PB4 GND-GND
CLK- PA15 LAT-PB7
OE- PB0 GND-GND
I used the following code:
#include "DMD_RGB.h"
//Number of panels in x and y axis
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
#define ENABLE_DUAL_BUFFER false
// ==== DMD_RGB pins ====
// mux pins - A, B, C... all mux pins must be selected from same port!
#define DMD_PIN_A PB6
#define DMD_PIN_B PB5
#define DMD_PIN_C PB4
#define DMD_PIN_D PB3
#define DMD_PIN_E PB8
// put all mux pins at list
uint8_t mux_list[] = { DMD_PIN_A , DMD_PIN_B,DMD_PIN_C};
// pin OE must be one of PB0 PB1 PA6 PA7
#define DMD_PIN_nOE PB0
#define DMD_PIN_SCLK PB7
// Pins for R0, G0, B0, R1, G1, B1 channels and for clock.
uint8_t custom_rgbpins[] = { PA15, PA0,PA1,PA2,PA3,PA4,PA5 }; // CLK, R0, G0, B0, R1, G1, B1
DMD_RGB <RGB32x16plainS4, COLOR_4BITS> dmd(mux_list, DMD_PIN_nOE, DMD_PIN_SCLK, custom_rgbpins, DISPLAYS_ACROSS, DISPLAYS_DOWN, ENABLE_DUAL_BUFFER);
DMD_Standard_Font Arial_Black_F(Arial_Black_16);
void setup(void)
{
//enableDebugPorts();
// initialize DMD objects
dmd.init();
dmd.drawChar(0, 0, 'A', 3, 0) ;
dmd.drawPixel(10, 10, 5);
dmd.swapBuffers(true);
//
delay(5000);
}
`

