Adafruit-RGB_matrix_Panel(32*16)

Dependencies:   Adafruit-GFX

Dependents:   Ardoise_magique

Revision:
3:aa3762e0dfee
Parent:
2:6136465ffd3a
Child:
4:0ff6053c4bb2
diff -r 6136465ffd3a -r aa3762e0dfee RGBmatrixPanel.h
--- a/RGBmatrixPanel.h	Sat May 24 11:43:34 2014 +0000
+++ b/RGBmatrixPanel.h	Sat May 24 17:33:23 2014 +0000
@@ -7,7 +7,7 @@
 
 
 #ifdef DEBUG
-#define log_debug(format, ...)  std::printf(format,  ## __VA_ARGS__)
+#define log_debug(format,...)   std::printf(format,##__VA_ARGS__)
 #else
 #define log_debug(...)
 #endif
@@ -18,10 +18,10 @@
 
 public:
     // Constructor for 16x32 panel:
-    RGBmatrixPanel(PinName a, PinName b, PinName c, PinName sclk, PinName latch, PinName oe, bool dbuf);
+    RGBmatrixPanel(PinName r1,PinName r2,PinName g1,PinName g2,PinName b1,PinName b2,PinName a,PinName b,PinName c,PinName sclk,PinName latch, PinName oe,bool dbuf);
 
     // Constructor for 32x32 panel (adds 'd' pin):
-    RGBmatrixPanel(PinName a, PinName b, PinName c, PinName d, PinName sclk, PinName latch, PinName oe, bool dbuf);
+    RGBmatrixPanel(PinName r1,PinName r2,PinName g1,PinName g2,PinName b1,PinName b2,PinName a,PinName b,PinName c,PinName d,PinName sclk, PinName latch,PinName oe,bool dbuf);
 
     void begin(void);
     virtual void drawPixel(int16_t x, int16_t y, uint16_t c);
@@ -47,8 +47,9 @@
     // Init/alloc code common to both constructors:
     void init(uint8_t rows, bool dbuf);
 
-    DigitalOut _sclk, _latch, _oe, _a, _b, _c, _d;
-
+    DigitalOut _sclk, _latch, _oe, _d;
+    BusOut _dataBus,_rowBus;
+    Ticker _refresh;
     // Counters/pointers for interrupt handler:
     volatile uint8_t row, plane;
     volatile uint8_t *buffptr;