Permalink
Browse files

Updated 32x32 examples for single header input

  • Loading branch information...
1 parent a875e9a commit 1974b8fd4ea9438a3d2b3e6e14b8bfdc7e78c48b @PaintYourDragon PaintYourDragon committed Dec 5, 2012
@@ -4,13 +4,23 @@
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
-#define A A3
-#define B A2
-#define C A1
-#define D A0
+// If your 32x32 matrix has the SINGLE HEADER input,
+// use this pinout:
#define CLK 8 // MUST be on PORTB!
-#define LAT 9
-#define OE 10
+#define OE 9
+#define LAT 10
+#define A A0
+#define B A1
+#define C A2
+#define D A3
+// If your matrix has the DOUBLE HEADER input, use:
+//#define CLK 8 // MUST be on PORTB!
+//#define LAT 9
+//#define OE 10
+//#define A A3
+//#define B A2
+//#define C A1
+//#define D A0
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
void setup() {
@@ -7,13 +7,23 @@
#include <RGBmatrixPanel.h> // Hardware-specific library
#include "image.h"
-#define A A3
-#define B A2
-#define C A1
-#define D A0
+// If your 32x32 matrix has the SINGLE HEADER input,
+// use this pinout:
#define CLK 8 // MUST be on PORTB!
-#define LAT 9
-#define OE 10
+#define OE 9
+#define LAT 10
+#define A A0
+#define B A1
+#define C A2
+#define D A3
+// If your matrix has the DOUBLE HEADER input, use:
+//#define CLK 8 // MUST be on PORTB!
+//#define LAT 9
+//#define OE 10
+//#define A A3
+//#define B A2
+//#define C A1
+//#define D A0
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
void setup() {
@@ -5,13 +5,23 @@
#include <RGBmatrixPanel.h> // Hardware-specific library
#include <avr/pgmspace.h>
-#define A A3
-#define B A2
-#define C A1
-#define D A0
+// If your 32x32 matrix has the SINGLE HEADER input,
+// use this pinout:
#define CLK 8 // MUST be on PORTB!
-#define LAT 9
-#define OE 10
+#define OE 9
+#define LAT 10
+#define A A0
+#define B A1
+#define C A2
+#define D A3
+// If your matrix has the DOUBLE HEADER input, use:
+//#define CLK 8 // MUST be on PORTB!
+//#define LAT 9
+//#define OE 10
+//#define A A3
+//#define B A2
+//#define C A1
+//#define D A0
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
static int8_t sinetab[256] PROGMEM = {
@@ -5,13 +5,23 @@
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
-#define A A3
-#define B A2
-#define C A1
-#define D A0
+// If your 32x32 matrix has the SINGLE HEADER input,
+// use this pinout:
#define CLK 8 // MUST be on PORTB!
-#define LAT 9
-#define OE 10
+#define OE 9
+#define LAT 10
+#define A A0
+#define B A1
+#define C A2
+#define D A3
+// If your matrix has the DOUBLE HEADER input, use:
+//#define CLK 8 // MUST be on PORTB!
+//#define LAT 9
+//#define OE 10
+//#define A A3
+//#define B A2
+//#define C A1
+//#define D A0
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
void setup() {

0 comments on commit 1974b8f

Please sign in to comment.