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

Special character at specific position #2

Open
thrazu opened this issue Feb 9, 2018 · 3 comments
Open

Special character at specific position #2

thrazu opened this issue Feb 9, 2018 · 3 comments

Comments

@thrazu
Copy link

thrazu commented Feb 9, 2018

Hi.
The createChar function only puts a character at 0, 0 position. How can I create for example one character some other place. Let's say I need something like:

    lcd.setCursor(0, 1);
    lcd.print([0x1,0x3,0xf,0xf,0xf,0x3,0x1]);
    lcd.setCursor(1, 1);
    lcd.print('70%');
    lcd.setCursor(8, 1);
    lcd.print(moment().format('HH:mm:ss'));

Thanks!

@PierreTrp
Copy link

@craigmw @thrazu Did you find a solution ? i have the exact same problem

Screen.createChar( 0,[0x0,0xf,0x3,0x5,0x9,0x10,0x0] ).createChar( 1,[0x0,0xf,0x3,0x5,0x9,0x10,0x0] ).createChar( 2,[ 0x0,0xf,0x3,0x5,0x9,0x10,0x0] );

This will only draw on position 0

@PierreTrp
Copy link

Hello, i'm still having the issue, i tried everything

@nervalo88
Copy link

nervalo88 commented Dec 9, 2018

Hi,
worked fine by doing :
lcd.setCursor(x,y);
lcd.write(0,1); //0 for the 1st specific character

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

3 participants