which pins are to used for Lat & DR in stm32 bluepill #150
Replies: 1 comment 1 reply
-
Hi
The last two, RDATA and CLK, are depends on SPI channel number, because CLK must be SPI SCK and DATA should be a SPI MOSI. See details in Wiki Edited - the correct pins should be SPI SCK and SPI MOSI |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The sketch mentions
#define DMD_PIN_A PA1
#define DMD_PIN_B PA4
#define DMD_PIN_nOE PB1
//#define DMD_PIN_nOE PA6
#define DMD_PIN_SCLK PA15 // may have to change to PA0 as another user mentioned
//#define DMD_PIN_SCLK PB4
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);
I could not understand which pins of bluepill are connected to LAT & Dr Given that the p10 monochrome HUB12 board has
OE , A, B, CLK, LAT & DR pins to be connected
I assume
OE to be connected to PB1
A to be connected to PA1
B to connected to PA4
CLK to be connected to PA15 or is it PA0 ?
LAT to be connected to ?
DR to be connected to ?
IF LAT is to be connected to PA15 / PA0 the which PIN is connected to CLK ? & offcourse DR ?
Further ,
#if defined(DMD_PARA)
#else
#end if
is given. However I do not find any place to specify for initializing DMD as DMD_PARA or SPI . Or is it simply commenting out unused one ?
Thank you & rgds
Beta Was this translation helpful? Give feedback.
All reactions