Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with 32x16 2s pattern #289

Open
Ushoplias opened this issue Nov 1, 2021 · 0 comments
Open

Help with 32x16 2s pattern #289

Ushoplias opened this issue Nov 1, 2021 · 0 comments

Comments

@Ushoplias
Copy link

The module is labeled "P10-3535-2S-3216-SHL 2,0". Running Arduino nano with PxMatrix version 1.8.2 ,
Pattern test:
20211101_153846-ANIMATION
and the code:
#include <PxMatrix.h>
#include <avr/pgmspace.h>
// Pins for LED MATRIX
#define P_A 2
#define P_B 3
#define P_C 4
#define P_D 5
#define P_E 6
#define P_LAT 7
#define P_OE 8
PxMATRIX display(32,16,P_LAT, P_OE,P_A,P_B);
uint16_t myRED = display.color565(255, 0, 0);
unsigned long start_time=0;

void setup() {
// put your setup code here, to run once:
display.begin(2);
display.setMuxPattern(STRAIGHT); // .setMuxPattern(BINARY) lits 2 diodes
display.setScanPattern(LINE);
display.clearDisplay();
}

void loop() {
display.drawPixel(0,0, myRED);
start_time = millis();
while((millis()-start_time)<5000)
display.display(20);
}

display.drawPixel(0,0, myRED), none of the patterms works as expexted:
LINE
1
ZIGZAG
2
ZZAGG
3
ZAGGIZ
4
ZAGZIG
5
and so on ... (I have not make all the pictures)
Tried also with display.setBlockPattern(DBCA).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant