start with all mosfets on
[Arduino] / Hub08_LedMatrix / LEDMatrix.h
index a6ca0a1..c8feb72 100644 (file)
@@ -24,6 +24,9 @@
 
  #include <stdint.h>
 
+// use hardware SPI
+#define USE_SPI 0
+
 class LEDMatrix {
 public:
     LEDMatrix(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t oe, uint8_t r1, uint8_t stb, uint8_t clk);
@@ -69,6 +72,10 @@ public:
      */
     void scan();
 
+    void swap();
+
+    uint8_t *offscreen_buffer();
+
     void reverse();
 
     uint8_t isReversed();
@@ -84,6 +91,7 @@ private:
     uint16_t height;
     uint8_t  mask;
     uint8_t  state;
+    uint8_t  buffer;
 };
 
 #endif