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

reinit display #44

Open
richo opened this issue Mar 5, 2023 · 1 comment
Open

reinit display #44

richo opened this issue Mar 5, 2023 · 1 comment

Comments

@richo
Copy link

richo commented Mar 5, 2023

Hi,

Thanks for the library. I have a display that is pretty glitchy, and while I'm trying to figure that out, in the meantime I'd like to be able to reinitialize the display.

My two thoughts on how to do this are:

Either add a public interface to init_4bit (and the 8bit and i2c versions, although I'm not using them), or

Add a method to destroy the HD44780 returning it's pins to the caller so I can create a new one and implicitly reinitialize it.

Do you have strong feelings on either solution? Is there another way to do this that I'm missing? I'm happy to give you a patch I'd just prefer to give you something you're willing to upstream,

richo

@ColinTimBarndt
Copy link
Contributor

You could try out #54 where I've added a destruct function to the driver and bus. You could use that to re-assemble it again which would cause re-initialization. I'm not sure how often this is going to be used, but I could add a function for that.

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

2 participants