-
Notifications
You must be signed in to change notification settings - Fork 40
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
Scroll display #29
Comments
Eventually found the solution. I suggest the following change, either optional or as preprocessor choice:
|
Thanks for asking. |
Also note bug #10 clearToEOL only clears a single page, so the solution you have shown only works for fonts that are a single page high. |
Preprocessor directive is fine. I understand that for some people space is more important than convenience. If this feature is not available you might need an additional buffering which wastes even more space. That is why I believe the general availability would be helpful. Maybe a callback could do the trick. If you set the callback, it is compiled in. If you do not use it, it is left out. Is that correct? So switching the feature on/off would be with oled.enableTextScroll(oled.callback) and oled.enableTextScroll(nullptr). Of course it needs still space to store the pointer and an if-clause to call to the function. I am not sure how much code that is on a tiny. Certainly the setCursor/clearToEOL could be replaced by a loop. |
Would it be possible to scroll the display one line up when the text reaches extends beyond the bottom of the screen so that the display can act as a mini console? I have looked into the code but I haven't found an easy way... but maybe there is a solution?
The text was updated successfully, but these errors were encountered: