Fix to have load pin working with SPI1.

Dependencies:   mbed

Fork of Max7221 by Dwayne Dilbeck

Revision:
6:191569a26f50
Parent:
5:1f3dbf38d027
Child:
7:a160cb7cdd86
--- a/Max7221.h	Thu Nov 19 23:27:53 2015 +0000
+++ b/Max7221.h	Thu Nov 19 23:58:07 2015 +0000
@@ -159,21 +159,21 @@
    
 private:
    /// Pointer for the class instance to a particular SPI bus
-   SPI *max72_spi;
+   SPI *max7221_spi;
    /// pointer for the class instance of a particular load signal
-   DigitalOut *load;
+   DigitalOut *max7221_cs;
    ///  id of the class instance
    int id;
    /// pointer to the number of devices connected to the SPI bus instance this device instance is connected to.
    int *maxInUse;
    
    ///For the class we have a static set of values.  There are 2 SPI buses, 2 load signals, and 2 counters of the number of devices connected to a SPI bus.
-   static SPI *spi1;
-   static SPI *spi2;
-   static DigitalOut *load1;
-   static DigitalOut *load2;
-   static int maxInUseSPI1;
-   static int maxInUseSPI2;
+   static SPI *spi;
+//   static SPI *spi2;
+   static DigitalOut *cs;
+//   static DigitalOut *load2;
+   static int maxInUseSPI;
+//   static int maxInUseSPI2;
 };
 
 #endif
\ No newline at end of file