![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Im using a library in the bluepill that uses the SPI. It works but it´s glitchy.
The SPI standard pins are :
PA7 - mosi
PA5 - clk
I would like use the alterante pins:
PB5 - mosi
PB3 - clk
Or SPI2
PB15 mosi2
PB13 clk2
How do I signal to use alternate pins? Im using bluepill under arduino or platformio IDEs
Roger Clark, the creator of the libary said to do:
SPI.setMOSI(PB15);
SPI.setMISO(PB14);
SPI.setSCLK(PB13);
SPI.begin();
Or:
SPIClass SPI_2(PB15,PB14,PB13);
SPI_2.begin();
But this commands are not anymore in the library.
I have read something about SPIclass but I can´t get it to work... Any hints?
Thank you so much