SPI Hello World

Fork of SPI_HelloWorld_Mbed by Mbed

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

No documentation found.
Revision:
3:dd9e7d208cbd
Parent:
2:34bd7b8d30f9
--- 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