recently i purchased a blue pill for a project. i'm trying to plug in an SD on SPI1 and a 2.2 lcd ili9341 on SPI2.
Now, SPI lib uses always SPI one, but on the library, if you specify 2 on the constructor of SPI, you can use the second SPI (here is the line that instance the object: https://github.com/rogerclarkmelbourne/ ... I.cpp#L776 ). So i just added
Code: Select all
i also changed the SPI velocity just in case (like the wiki say, SPI2 works at 18mhz, so i changed it here: https://github.com/rogerclarkmelbourne/ ... M.cpp#L107 ).
Any suggestion is welcome !