SPI2 CONTINUE #3677
larryl73
started this conversation in
Compatible displays and setup files
SPI2 CONTINUE
#3677
Replies: 1 comment
-
|
Left out a couple of things, I am using Platformio for coding, but having an openocd and driver issues , so am using cube programmer to program Larry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
I am trying to use SPI2 for an ST7735 display on a stm32f103, using Bodmers library.
I can compile and program for SPI1 and every thing works ok, but when I specify SPI2 pinout in setup and compile and program, all I get is a white screen. (I did change the clk and data pins) This line (281) on my version "//#define TFT_SPI_PORT 2", if I uncomment I get a compile error .pio\libdeps\genericSTM32F103C8\TFT_eSPI\Processors/TFT_eSPI_Generic.c:11:19: note: in expansion of macro 'TFT_SPI_PORT'
11 | SPIClass& spi = TFT_SPI_PORT;
Could someone point me in the right direction, There must be something silly I am doing.
I need to use SPI2, as the SPI1 data pin is one of the pins for complimentry PWM
Regards Larry
Beta Was this translation helpful? Give feedback.
All reactions