32×32?

This topic contains 8 replies, has 3 voices, and was last updated by  Michael 3 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #714

    B_man
    Member

    Just to be sure, does the backpack work with Adafruit’s 32×32 Matrix?
    http://www.adafruit.com/products/1484

    Thanks in advance!
    -B_man

    #2023

    Michael
    Keymaster

    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

    #2024

    B_man
    Member

    @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/library

    #2025

    Michael
    Keymaster

    Yes. Everything you need to know is documented on our site: https://nootropicdesign.com/matrixbackpack/

    #2357

    fadimore
    Member

    i 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);
    }
    #2358

    fadimore
    Member

    before 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?

    #2359

    Michael
    Keymaster

    There 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.

    #2360

    fadimore
    Member

    Do 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,

    #2361

    Michael
    Keymaster

    To 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.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.