forked library from davervw/SWSPI

Dependents:   11u35_usbLocalFilesystem

Fork of SWSPI by Dave Van Wagner

Revision:
2:457a920a1223
Parent:
1:0f59aa4b839f
Child:
3:8c6310f2038f
--- a/SWSPI.h	Tue Oct 06 02:12:46 2015 +0000
+++ b/SWSPI.h	Fri Mar 04 10:33:56 2016 +0000
@@ -23,6 +23,8 @@
 #ifndef SWSPI_H
 #define SWSPI_H
 
+#include "mbed.h"
+
 /** A software implemented SPI that can use any digital pins
  *
  * Useful when don't want to share a single SPI hardware among attached devices
@@ -50,9 +52,9 @@
 {
 private:
     uint8_t fast_write(uint8_t value);
-    DigitalInOut* mosi;
-    DigitalInOut* miso;
-    DigitalInOut* sclk;
+    DigitalOut* mosi;
+    DigitalIn* miso;
+    DigitalOut* sclk;
     int port;
     int bits;
     int mode;