Closed nawab-sw closed 5 months ago
PROBLEM RESOLVED
I apologize for the delay in response. What was the issue?
Thank you very much for your response Problem is now solved.
Thanx for supporting us
On Thu, Jan 18, 2024, 2:30 PM board707 @.***> wrote:
I apologize for the delay in response. What was the issue?
— Reply to this email directly, view it on GitHub https://github.com/board707/DMD_STM32/issues/69#issuecomment-1898059562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4X7WA2XOLMDFJWBAKRRSDYPDQA7AVCNFSM6AAAAABB6FVAFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYGA2TSNJWGI . You are receiving this because you authored the thread.Message ID: @.***>
I am working on monochrome led matrix size 64x16 (32x16 + 32x16 Two panel in series) by using stm32f103, I want to Display WELCOME moving across the display. but not display well, video is attached kindly what i am doing wrong, all the connection and wiring is well connected and i am suing spi2 .thank you in advance..
![IMG_20240117_142937](https://github.com/board707/DMD_STM32/assets/49905624/7c257641-bb48-49a0-a7b8-eb8becdfb01b)
https://github.com/board707/DMD_STM32/assets/49905624/a97cdade-74e6-4e07-8fa7-68a1d9c8cdcd
I hone for positive result and code is below:
/*-------------------------------------------------------------------------------------- Demo code for DMD panels
DMD_STM32a example code for STM32F103xxx board ------------------------------------------------------------------------------------- / // choose between Parallel ans SPI wiring // comment line below for SPI connection //#define DMD_PARA /-------------------------------------------------------------------------------------- Includes --------------------------------------------------------------------------------------*/
if defined(DMD_PARA)
include "DMD_Monochrome_Parallel.h"
else
include "DMD_MonoChrome_SPI.h"
endif
// Fonts includes
include "st_fonts/UkrRusArial14.h"
pragma GCC diagnostic ignored "-Wnarrowing"
pragma GCC diagnostic ignored "-Woverflow"
include "gfx_fonts/GlametrixLight12pt7b.h"
include "gfx_fonts/GlametrixBold12pt7b.h"
pragma GCC diagnostic warning "-Wnarrowing"
pragma GCC diagnostic warning "-Woverflow"
//Number of panels in x and y axis
define DISPLAYS_ACROSS 2
define DISPLAYS_DOWN 1
// Enable of output buffering // if true, changes only outputs to matrix after // swapBuffers(true) command // If dual buffer not enabled, all output draw at matrix directly // and swapBuffers(true) cimmand do nothing
define ENABLE_DUAL_BUFFER true
// ----- Select pins for P10 matrix connection ------------ // pins A, B, SCLK may be any digital I/O, pin nOE should be Timer3 PWM pin as PB0,PB1 // if connect as SPI, do not use corresponding MiSO pin - PA6 for SPI1 and PB14 for SPI2
define DMD_PIN_A PA11
define DMD_PIN_B PA12
define DMD_PIN_nOE PB1
//#define DMD_PIN_nOE PA6
define DMD_PIN_SCLK PA15
//#define DMD_PIN_SCLK PB4
// pins for SPI connect // SPI specific pins as CLK and R_DATA has predefined values: // for SPI(1) CLK = PA5 R_DATA = PA7 // for SPI(2) CLK = PB13 R_DATA = PB15 // --------------------------------------------------------
//=== Config for Parallel connect ====
if defined(DMD_PARA)
//pins for rows at x axis // example for two rows // all those pins must be selected from same port! uint8_t pins[] = { PA5, PA7, PA6 }; // CLK , row1, row 2
//Fire up the DMD object as dmd DMD_Monochrome_Parallel dmd(DMD_PIN_A, DMD_PIN_B, DMD_PIN_nOE, DMD_PIN_SCLK, pins, DISPLAYS_ACROSS, DISPLAYS_DOWN,ENABLE_DUAL_BUFFER);
else
//=== Config for SPI connect ==== SPIClass dmd_spi(2); DMD_MonoChrome_SPI dmd(DMD_PIN_A, DMD_PIN_B, DMD_PIN_nOE, DMD_PIN_SCLK, DISPLAYS_ACROSS, DISPLAYS_DOWN, dmd_spi, ENABLE_DUAL_BUFFER);
endif
// --- Define fonts ---- // DMD.h old style font DMD_Standard_Font UkrRusArial_F(UkrRusArial_14);
// GFX font with sepatate parts for Latin and Cyrillic chars DMD_GFX_Font GlametrixL((uint8_t)&GlametrixLight12pt7b,(uint8_t)&GlametrixLight12pt8b_rus,0x80,13);
/*-------------------------------------------------------------------------------------- UTF8 char recoding
--------------------------------------------------------------------------------------/ int utf8_rus(char dest, const unsigned char* src) {
uint16_t i, j; for ( i =0, j =0; src[i]; i++) { if ((src[i] == 0xD0 )&& src[i+1]) { dest[j++] = src[++i] - 0x10;} else if ((src[i] == 0xD1 )&& src[i+1]) {dest[j++] = src[++i] + 0x30; } else dest[j++] = src[i]; } dest[j] ='\0'; return j; }
/-------------------------------------------------------------------------------------- setup Called by the Arduino architecture before the main loop begins --------------------------------------------------------------------------------------/
void setup(void) {
// initialize DMD objects // scan DMD row each 700 us dmd.init(700); dmd.setBrightness(80);
}
/-------------------------------------------------------------------------------------- loop Arduino architecture main loop --------------------------------------------------------------------------------------/ void loop(void) {
}