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

scrolling text with Winstar_WEH 16x2 OLED #337

Open
jimToo opened this issue Mar 2, 2022 · 0 comments
Open

scrolling text with Winstar_WEH 16x2 OLED #337

jimToo opened this issue Mar 2, 2022 · 0 comments
Labels

Comments

@jimToo
Copy link

jimToo commented Mar 2, 2022

Hey!
I'm currently trying to scroll text an a 16x2 Char-OLED display.

I just finished to display song and artist of my mpd-server on the display.
The Luma-drivers are working pretty nice!

How can I scroll the text on first and second line?

As far as I understood, the second line of the display is only available by the "next line"-shortcut "\n".

I think I can do this by creating arrays and put "\n" between it:

'veeeery long art' + '\n' + 'veeeeery long so'
'eeeery long arti' + '\n' + 'eeeeery long son'
'eeery long artis' + '\n' + 'eeeery long song'

But is there an easier way?

Thanks you a lot for any advice, tip, link

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

No branches or pull requests

2 participants