Novo

Dependencies:   mbed

Fork of LukaIElmir by tim003 tim003

Revision:
3:43648fa57d55
Parent:
2:e4d483d82cd8
--- a/MatrixSPI.h	Mon May 26 12:29:55 2014 +0000
+++ b/MatrixSPI.h	Mon May 26 15:07:13 2014 +0000
@@ -33,13 +33,9 @@
     
     void setup ();
 
-    void sendSingle(int reg, int data) {
-        load = LOW;            // begin
-        max72_spi.write(reg);  // specify register
-        max72_spi.write(data);  // put data
-        load = HIGH;           // make sure data is loaded (on rising edge of LOAD/CS)
-    }
-
+    void sendSingle(int reg, int data);
+    void sendCol(int col, int data);
+    
     void turnON(){
         sendSingle(shutdown, 0x01);    // not in shutdown mode
     }