Store › Forums › RGB Matrix Backpack › General Discussion › 32×32?
- This topic has 8 replies, 3 voices, and was last updated 9 years ago by Michael.
-
AuthorPosts
-
September 8, 2014 at 1:35 am #714B_manMember
Just to be sure, does the backpack work with Adafruit’s 32×32 Matrix?
http://www.adafruit.com/products/1484Thanks in advance!
-B_manSeptember 10, 2014 at 12:12 pm #2023MichaelKeymasterYes:
The RGB Matrix Backpack is a small board that connects to the back of an Adafruit 16×32 or 32×32 RGB LED Matrix Panel
September 10, 2014 at 9:23 pm #2024B_manMember@Michael wrote:
Yes:
The RGB Matrix Backpack is a small board that connects to the back of an Adafruit 16×32 or 32×32 RGB LED Matrix Panel
Awesome, and for programming, does it use the same library thats on Adafruit’s “Learn” Section?
http://learn.adafruit.com/32×16-32×32-rgb-led-matrix/librarySeptember 11, 2014 at 2:32 am #2025MichaelKeymasterYes. Everything you need to know is documented on our site: https://nootropicdesign.com/matrixbackpack/
October 26, 2015 at 3:44 am #2357fadimoreMemberi rewrite sketch scorlltext 16*32 to work with 32*32 and this is the code
// testshapes demo for Adafruit RGBmatrixPanel library.
// Demonstrates the drawing abilities of the RGBmatrixPanel library.
// For 32x32 RGB LED matrix:
// http://www.adafruit.com/products/607
// Written by Limor Fried/Ladyada & Phil Burgess/PaintYourDragon
// for Adafruit Industries.
// BSD license, all text above must be included in any redistribution.
#include// Core graphics library
#include// Hardware-specific library
#define F2(progmem_ptr) (const __FlashStringHelper *)progmem_ptr
// If your 32x32 matrix has the SINGLE HEADER input,
// use this pinout:
#define CLK 8 // MUST be on PORTB! (Use pin 11 on Mega)
#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! (Use pin 11 on Mega)
//#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);
const char str[] PROGMEM = "hello";
int textX = matrix.width(),
textMin = sizeof(str) * -12,
hue = 0;
void setup() {
matrix.begin();
matrix.setTextWrap(false); // Allow text to run off right edge
matrix.setTextSize(2);
// draw a pixel in solid white
// matrix.drawPixel(0, 0, matrix.Color333(7, 7, 7));
// delay(500);
// fix the screen with green
// matrix.fillRect(0, 0, 32, 32, matrix.Color333(0, 7, 0));
// delay(500);
// draw a box in yellow
// draw an 'X' in red
// matrix.drawLine(0, 0, 31, 31, matrix.Color333(7, 0, 0));
// matrix.drawLine(31, 0, 0, 31, matrix.Color333(7, 0, 0));
// delay(500);
// draw a blue circle
// matrix.drawCircle(10, 10, 10, matrix.Color333(0, 0, 7));
// delay(500);
// fill a violet circle
// matrix.fillCircle(21, 21, 10, matrix.Color333(7, 0, 7));
// delay(500);
// fill the screen with 'black'
matrix.fillScreen(matrix.Color333(0, 0, 0));
// draw some text!
// matrix.setCursor(1, 0); // start at top left, with one pixel of spacing
// matrix.setTextSize(2); // size 1 == 8 pixels high
// matrix.setTextWrap(false); // Don't wrap at end of line - will do ourselves
// matrix.setTextColor(matrix.Color333(7,7,7));
// matrix.println(" open");
// matrix.println("welcome");
/* // print each letter with a rainbow color
matrix.setTextColor(matrix.Color333(7,0,0));
matrix.print('3');
matrix.setTextColor(matrix.Color333(7,4,0));
matrix.print('2');
matrix.setTextColor(matrix.Color333(7,7,0));
matrix.print('x');
matrix.setTextColor(matrix.Color333(4,7,0));
matrix.print('3');
matrix.setTextColor(matrix.Color333(0,7,0));
matrix.println('2');
matrix.setTextColor(matrix.Color333(0,7,7));
matrix.print('*');
matrix.setTextColor(matrix.Color333(0,4,7));
matrix.print('R');
matrix.setTextColor(matrix.Color333(0,0,7));
matrix.print('G');
matrix.setTextColor(matrix.Color333(4,0,7));
matrix.print("B");
matrix.setTextColor(matrix.Color333(7,0,4));
matrix.print("*");
*/
// whew!
}
void loop() {
matrix.fillScreen(0);
matrix.drawRect(0, 0, 32, 32, matrix.Color333(7, 7, 0));
matrix.setTextColor(matrix.ColorHSV(hue, 255, 255, true));
matrix.setCursor(textX ,9 );
matrix.print(F2(str));
if((--textX) < textMin) textX = matrix.width();
hue += 7;
if(hue >= 1536) hue -= 1536;
// Update display
matrix.swapBuffers(false);
delay(100);
}October 26, 2015 at 3:52 am #2358fadimoreMemberbefore i order another 32″.32″can I add another 32*32 as output to in put , can i see the text move from the first kit to another.and what about the program, it is need to change?
October 26, 2015 at 2:47 pm #2359MichaelKeymasterThere is not a simple way to chain two matrices together. One matrix would need to communicate with the other in order for them to be in sync showing a display that spans both. You could implement a serial communication method between them, but it’s not a simple thing.
October 26, 2015 at 4:06 pm #2360fadimoreMemberDo you know how, can you explain to me , you know I need to use 2 or 3 led matrix, they said that we can do that , they put a data cable with every led mayrix, but in real when we try to connect 2 led matrix , we can’t use it as one, we need a program and change library, Ineed you help to do that,
October 27, 2015 at 12:56 pm #2361MichaelKeymasterTo make two backpacks coordinate their display, you would need to use serial communication between them using the 6-pin serial headers on the board. Not the ribbon cable that connects to the panel. This isn’t a simple project so if you don’t have experience with serial communication and significant programming experience then it’s not going to be easy. It’s not a library change. It is changes to the programs running on the backpack boards.
-
AuthorPosts
- You must be logged in to reply to this topic.