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

Handling of reset pin to SH1106 #26

Open
Phyllostachys opened this issue Feb 8, 2022 · 5 comments
Open

Handling of reset pin to SH1106 #26

Phyllostachys opened this issue Feb 8, 2022 · 5 comments

Comments

@Phyllostachys
Copy link

It doesn't appear that this driver handles operation of the reset pin on SH1106 devices, at least when compared to this Adafruit forked Arduino driver here. Unless I'm missing something (probably)?

@jamwaffles
Copy link
Collaborator

We do have a reset method on GraphicsMode, but we don't on RawMode. What mode are you using?

The examples also don't reset the display which may have added to your confusion. reset is findable in the docs, but only if you search for it.

@Phyllostachys
Copy link
Author

Oooh, yeah, we were using GraphicsMode but I missed that the reset method takes a pin to be used for reset and I did it manually. I guess I can see why it isn't captured by the builder since it isn't done often. Alright, thanks!

@Phyllostachys
Copy link
Author

Err, I guess in the examples I've seen, I haven't seen any calls to set that pin or calls to reset? I was using this for the Adafruit Macropad which has the pin pulled to ground, which might be where my difficulty was.

@jamwaffles
Copy link
Collaborator

No, the examples don't call it at all which is a bit of an oversight. I believe reset is only valid for SPI as well (although please let me know if you have an I2C display with a reset line), so I think I need to consider moving reset to a more protocol-agnostic part of the crate.

@jamwaffles
Copy link
Collaborator

... and add it to the examples for completeness' sake.

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