fadimore

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: 32×32? #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,

    in reply to: 32×32? #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?

    in reply to: 32×32? #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);
    }
Viewing 3 posts - 1 through 3 (of 3 total)