-
Notifications
You must be signed in to change notification settings - Fork 69
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
Different display modes #25
Comments
Hmm, interesting problem. I quite like the idea of As for the three interfaces, what should the behaviour of each be? Right now my understanding is this: @jamwaffles: Buffered display capable of drawing pixels, primitives, bitmap fonts and images with Correcy me if I'm wrong! It would be great for this driver to support everything people want to do with it. |
Currently my character mode initialises the display to do 8x8 tiles with automatic increment. It comes with a built-in 7x7 font which renders each character at once so it doesn't use a buffer at all and works stateless. I also have a |
@scowcron driver is here: https://github.com/EdgewaterDevelopment/rust-ssd1306 . It's basically a framebuffer that allows turning individual pixels on and off and then update the display with the current content of the framebuffer. |
That sounds awesome, particularly the term output. Would be nice to see debug output without having to step through with GDB. Thinking about how it would work with this driver, I think you'd have an Ah, I did see @scowcron's repo, just didn't put two and two together. It's already possible to set a pixel with this driver, although nicer stuff like |
I was thinking along the lines of a I wouldn't even feature guard it. It doesn't have any dependencies so it's completely nonintrusive and free when not used.
Well, pretty much any implementation will need that since the screen cannot be read back (at least not in I2C mode, I think there're some versions that would actually allow that). I'm not so keen on having a driver where most of the interface is behind a feature gate. I'd rather have one which is completely gated and a simplistic one (probably sharing the same framebuffer code)... but of course I'll leave that decision up to you. ;) |
I think we can close this now. It's not perfect, but I think we've got a pretty good way of doing multiple modes exemplified by #27 :) |
Spinoff from #2 (comment):
The text was updated successfully, but these errors were encountered: