0

Adafruit NeoPixel
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit NeoPixel

by pe_martin on Thu Apr 29, 2021 5:02 am

Hello guys,
I have a Adafruit NeoPixel 8x32 and want connect it with a arduino uno or something else.
I want show at the arduione some text (running around) but i don´t found any working sketch.
All sketch i found and i move compiled on my arduino are making a chaos picture on the panel.
Did anyone have a running sketch to test the panel?
Best regards
peter

pe_martin
 
Posts: 9
Joined: Thu Apr 29, 2021 4:48 am

Re: Adafruit NeoPixel

by blnkjns on Thu Apr 29, 2021 8:12 am

Guess it's a flexible panel? Those have the pixels in zig-zag, so if you let it show text, it has the even lines in reversed order. That will look garbled. I think the GFX library has fonts, but also the ability to fix the weird pixel order issue.
Maybe this tutorial will help:
https://cyaninfinite.com/scrolling-text ... ed-matrix/

blnkjns
 
Posts: 619
Joined: Fri Oct 02, 2020 3:33 am

Re: Adafruit NeoPixel

by pe_martin on Thu Apr 29, 2021 8:21 am

Hey hello!
I will try it tonight and give you a feedback.
Best regards
peter

pe_martin
 
Posts: 9
Joined: Thu Apr 29, 2021 4:48 am

Re: Adafruit NeoPixel

by pe_martin on Fri Apr 30, 2021 3:27 am

hello many thanks, it works.
Best regards
peter

pe_martin
 
Posts: 9
Joined: Thu Apr 29, 2021 4:48 am

Re: Adafruit NeoPixel

by pe_martin on Mon May 03, 2021 3:38 pm

Hello guys!
After testing 2 Neopixel 32x8 and that work, i want check the same sketch with 4 Neopixel 32x8 but that doens´t work.


#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>

#define PIN 5

// MATRIX DECLARATION:
// Parameter 1 = width of NeoPixel matrix
// Parameter 2 = height of matrix
// Parameter 3 = pin number (most are valid)
// Parameter 4 = matrix layout flags, add together as needed:
// NEO_MATRIX_TOP, NEO_MATRIX_BOTTOM, NEO_MATRIX_LEFT, NEO_MATRIX_RIGHT:
// Position of the FIRST LED in the matrix; pick two, e.g.
// NEO_MATRIX_TOP + NEO_MATRIX_LEFT for the top-left corner.
// NEO_MATRIX_ROWS, NEO_MATRIX_COLUMNS: LEDs are arranged in horizontal
// rows or in vertical columns, respectively; pick one or the other.
// NEO_MATRIX_PROGRESSIVE, NEO_MATRIX_ZIGZAG: all rows/columns proceed
// in the same order, or alternate lines reverse direction; pick one.
// See example below for these values in action.
// Parameter 5 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(64, 8, PIN,
NEO_MATRIX_BOTTOM + NEO_MATRIX_RIGHT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800); // change 64 to 128

const uint16_t colors[] = {
matrix.Color(255, 0, 0), matrix.Color(0, 255, 0), matrix.Color(255, 255, 0),matrix.Color(0, 0, 255), matrix.Color(255, 0, 255), matrix.Color(0, 255, 255), matrix.Color(255, 255, 255)};

void setup() {
matrix.begin();
matrix.setTextWrap(false);
matrix.setBrightness(5);
matrix.setTextColor(colors[0]);
}

int x = matrix.width();
int pass = 0;

void loop() {
matrix.fillScreen(0); //Turn off all the LEDs
matrix.setCursor(x, 0);
matrix.print(F("Boarding"));

if( --x < -175 ) { //-175
x = matrix.width();

if(++pass >= 8) pass = 0;
matrix.setTextColor(colors[pass]);
}
matrix.show();
delay(175);
}

Did anyone have an idea?
Perhaps with more power? If yes, where i had to connect.
Thanks for the help.
Best regards
peter

pe_martin
 
Posts: 9
Joined: Thu Apr 29, 2021 4:48 am

Please be positive and constructive with your questions and comments.