which pins are to used for Lat & DR in stm32 bluepill #150
|
The sketch mentions 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 IF LAT is to be connected to PA15 / PA0 the which PIN is connected to CLK ? & offcourse DR ? Further , #if defined(DMD_PARA) 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 |
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 |
Hi
For compatibility reason the LAT signal is called a SCLK here. So you have these pins: A, B, SCLK(LAT), nOE, Rdata & CLK.
The first four are defined in code:
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.
On STM32F103 boards it will be A5 A7 in the case of SPI (1) or PB13 PB15 for SPI (2), respectively.
See details in Wiki
https://github.com/board707/DMD_STM32/wiki/Connections---Monochrome
and
https://github.com/board707/DMD_STM32/wiki/quick_sta…