![](/media/cache/group/mbed-logo-square-512_3.png.50x50_q85.png)
SPI Hello World
Fork of SPI_HelloWorld_Mbed by
Note
You will need to redefine the SPI pins to match the pins on your board to run this example. The pin mapping can be found on the board's Platform page.
API
API reference
Import librarymbed
Diff: main.cpp
- Revision:
- 3:dd9e7d208cbd
- Parent:
- 2:34bd7b8d30f9
diff -r 34bd7b8d30f9 -r dd9e7d208cbd main.cpp --- a/main.cpp Fri Mar 27 20:16:45 2015 +0000 +++ b/main.cpp Thu Jan 19 09:32:30 2017 -0600 @@ -15,8 +15,8 @@ */ #include "mbed.h" -SPI spi(p5, p6, p7); // mosi, miso, sclk -DigitalOut cs(p8); +SPI spi(D11, D12, D13); // mosi, miso, sclk +DigitalOut cs(D0); int main() { // Chip must be deselected