fork from Sog

Dependencies:   NNN50_WIFI_API

Fork of mbed_SPIS_multiByte_example_SOG by Sog Yang

Revision:
6:bce37a45b9cb
Parent:
5:6a1155885fc9
Child:
7:0ea5460e0de3
--- a/main.cpp	Tue Jun 13 04:34:01 2017 +0000
+++ b/main.cpp	Tue Jun 13 12:46:50 2017 +0000
@@ -29,7 +29,8 @@
 #include "SPISlave_multiByte.h"
 
 //SPISlave_multiByte device(A1, A2, A3, p3); // mosi, miso, sclk, ssel
-SPISlave_multiByte device(p15, p9, p11, p29); // mosi, miso, sclk, ssel
+//SPISlave_multiByte device(p15, p9, p11, p29); // mosi, miso, sclk, ssel
+SPISlave_multiByte device(A1, A0, A3, A2); // mosi, miso, sclk, ssel
 Serial uart(USBTX, USBRX);
 DigitalOut myled(LED1);
 
@@ -68,6 +69,7 @@
 }
 
 int main() {
+    uart.baud(115200);
     uart.printf("START!");
     device.format(8,0);  
     myled = 1;
@@ -75,7 +77,7 @@
    while(1) {
     
     uart.printf("Add: %p \r\n", device.read());
-    uart.printf("%c \r\n", device.read());
+    //uart.printf("%c \r\n", device.read());
     
     while (!device.readable()) {
         __WFE();