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

Text 5 Lines and Font Size #1

Open
Alexxx2005 opened this issue Jan 17, 2020 · 0 comments
Open

Text 5 Lines and Font Size #1

Alexxx2005 opened this issue Jan 17, 2020 · 0 comments

Comments

@Alexxx2005
Copy link

Hello Alan,

thank you for your Sketch, it's very good !

Can you help me with a little Problem, i want to Draw
any Text on the Matrix Display. 3 or 4 Lines and different
Font Size , or a Rolling Text...

You have any Idea what i have to do
i looking for examples or instructions,
but i don't found anything, i use this Code

`#include <PxMatrix.h>
#include <Ticker.h>
Ticker display_ticker;
#define P_LAT 16
#define P_A 5
#define P_B 4
#define P_C 15
#define P_D 12
#define P_E 0
#define P_OE 2

// Pins for LED MATRIX
//PxMATRIX display(32,16,P_LAT, P_OE,P_A,P_B,P_C);
//PxMATRIX display(32,32,P_LAT, P_OE,P_A,P_B,P_C,P_D);
//PxMATRIX display(64,64,P_LAT, P_OE,P_A,P_B,P_C,P_D,P_E);
PxMATRIX display(64,32,P_LAT, P_OE,P_A,P_B,P_C,P_D);

// ISR for display refresh
void display_updater()
{
// display.displayTestPattern(70);
// display.displayTestPixel(70);
display.display(70);
}

uint16_t myGelb = display.color565(255, 255, 0);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
display.begin(16);
display.flushDisplay();
display.setTextColor(myGelb);
display.setCursor(2,0);
display.print("Alexander");
display.setTextColor(myGelb);
display.setCursor(2,8);
display.print("AlexanderM");

display_ticker.attach(0.002, display_updater);
delay(1000);
}

void loop() {
delay(100);
}`

Thank you so much , best regards Alex

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