diff --git a/extras/mcufriend_how_to.txt b/extras/mcufriend_how_to.txt index 9cf403e..04d84c2 100644 --- a/extras/mcufriend_how_to.txt +++ b/extras/mcufriend_how_to.txt @@ -136,10 +136,10 @@ It also runs on NUCLEO-F103 and TEENSY3.2 with Sparkfun Adapter 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| - //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); - 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 300R pair is XP, XM. 500R pair is YP, YM. choose XM, YP from PA7, PA6. XP, YM from PB6, PB7 diff --git a/utility/mcufriend_shield.h b/utility/mcufriend_shield.h index 8de0557..3e76e53 100644 --- a/utility/mcufriend_shield.h +++ b/utility/mcufriend_shield.h @@ -545,7 +545,7 @@ void write_8(uint8_t x) #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| -//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_PIN 5