corrected the BLUEPILL Adapter SPI pins

This commit is contained in:
prenticedavid
2019-03-28 14:24:34 +00:00
parent 9dbcfe160e
commit 365b41992d
2 changed files with 3 additions and 3 deletions

View File

@@ -136,10 +136,10 @@ It also runs on NUCLEO-F103 and TEENSY3.2 with Sparkfun Adapter
21. BLUEPILL Adapter standard wiring is: 21. BLUEPILL Adapter standard wiring is:
//LCD pins |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST| |SD_SS|SD_DI|SD_DO|SD_SCK| //LCD pins |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST| |SD_SS|SD_DI|SD_DO|SD_SCK|
//STM32 pin |PA7|PA6|PA5|PA4|PA3|PA2|PA1|PA0| |PB0|PB6|PB7|PB8|PB9| |PB12 |PB15 |PB14 |PB13 | **SPI2** //STM32 pin |PA7|PA6|PA5|PA4|PA3|PA2|PA1|PA0| |PB0|PB6|PB7|PB8|PB9| |PA15 |PB5 |PB4 |PB3 | **ALT-SPI1**
Maple core: to use SPI2 for SPI. edit SPI.cpp for SPIClass SPI(2); Maple core: to use SPI2 for SPI. edit SPI.cpp for SPIClass SPI(2);
STM Core: to use SPI2 for SPI. edit variant.h to use PB12-PB15 for SPI_SS etc STM Core: to use SPI2 for SPI. edit variant.h to use PA15, PB3, PB4, PB5 for SPI_SS etc
Touchscreen needs XM, YP to be on Analog capable pins. Measure resistance with DMM to determine X, Y Touchscreen needs XM, YP to be on Analog capable pins. Measure resistance with DMM to determine X, Y
300R pair is XP, XM. 500R pair is YP, YM. choose XM, YP from PA7, PA6. XP, YM from PB6, PB7 300R pair is XP, XM. 500R pair is YP, YM. choose XM, YP from PA7, PA6. XP, YM from PB6, PB7

View File

@@ -545,7 +545,7 @@ void write_8(uint8_t x)
#warning Uno Shield on BLUEPILL #warning Uno Shield on BLUEPILL
//LCD pins |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST| |SD_SS|SD_DI|SD_DO|SD_SCK| //LCD pins |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST| |SD_SS|SD_DI|SD_DO|SD_SCK|
//STM32 pin |PA7|PA6|PA5|PA4|PA3|PA2|PA1|PA0| |PB0|PB6|PB7|PB8|PB9| |PB12 |PB15 |PB14 |PB13 | **SPI2** //STM32 pin |PA7|PA6|PA5|PA4|PA3|PA2|PA1|PA0| |PB0|PB6|PB7|PB8|PB9| |PA15 |PB5 |PB4 |PB3 | **ALT-SPI1**
#define RD_PORT GPIOB #define RD_PORT GPIOB
//#define RD_PIN 5 //#define RD_PIN 5