-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Custom page selection for paged display #990
base: master
Are you sure you want to change the base?
Custom page selection for paged display #990
Conversation
… update only a vertical section of the display without affecting the rest.
…gned to the memory pages of the display - regardless I want to avoid the current buffer to range outside the display memory.
I am always happy to see code contributions, but in your case I am not sure whether this should be merged...
Alll in all I think everything can be achieved with the existing functions and there is no need to extend this lib. |
Thanks for the fast reply. As for your points:
header [16 pixel height]simulated 16x2 character display [34 pixel height, 13-pixel high font]footer [16 pixel height]Sure, I could manually calculate the first row of each section - but as there already were some methods thinking in terms of pages [u8g2_FirstPage(), u8g2_NextPage()] I thought, why not extend that interface.
I agree with you, that everything can already be achieved with existing functions - I thought of it more as 'convenience methods'. And for my - I must admit, rather special - case, quite useful. If you would like me to elaborate some more, please tell me so. In the case that I could convince you, I - as I said before - will definitly write some documentation and a minimal working example. I hope, this isn't too much text - thanks four all your time. Johannes |
it is possible to have glyphs which are multiple of 8. This means a font with 8x16 is very much possible (and also such a font is provided).
While reading your reply these are my thoughs: How much convenience code should be part of a library? We can always extend the interface or we can create a powerful example. And it is always a question, whether to add a lib procedure or just create an example, which is based on the existing procedures. The risk of adding a lib procedure is to have a specialized function which can be used only to solve a very special problem. In such a case I often try to create a more complex example to show how this can be solved with the existing functionality. The other question is: What is the problem you want to solve? Maybe a good documented example file would be much better for the u8g2 users? |
I am currently using an SSD1306 128x64 display and trying to write to it using an Arduino Uno. Because 2kB of Ram and 1kB of image data leave too little for the rest of the functionality, I was happy to see, that this library enabled one to use a paged update approach.
As to further minimize the computational cost [as I am effectively trying to simulate an LCD Keypad Shield [16x2 Symbols]] and to be able to seperate updates of different parts of the display, I would like to select only a partial region of the display.
This is my proposal how to implement it - feedback and criticism is very welcome.