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

[FR] Single pin for LCD BTN EN1, EN2, and ENC #27078

Open
Reza-v opened this issue May 10, 2024 · 2 comments
Open

[FR] Single pin for LCD BTN EN1, EN2, and ENC #27078

Reza-v opened this issue May 10, 2024 · 2 comments
Labels
T: Feature Request Features requested by users.

Comments

@Reza-v
Copy link

Reza-v commented May 10, 2024

Is your feature request related to a problem? Please describe.

So i am designing a control board based on the stm32 blackpill and because of a limited number of pins, i've had an idea. I'm trying to combine the three control wheel pins, BTN_EN1, EN2, and ENC and connect them to a single analog pin through resistors with different resistances and have the controller sense the resistances and activate the buttons accordingly. Now i am not very adept in programming MCUs so any help is appreciated. Should i just write the conditions in the pins file and that would work? I haven't tried anything yet.

Are you looking for hardware support?

No response

Describe the feature you want

Doodooo deedee daa

Additional context

No response

@Reza-v Reza-v added the T: Feature Request Features requested by users. label May 10, 2024
@ellensp
Copy link
Contributor

ellensp commented May 10, 2024

I dont think this can be done.

the encoder uses quadrature encoding

Ie there are times when both BTN_EN1 and BTN_EN2 are 0 or 1 at the same time

@Reza-v
Copy link
Author

Reza-v commented May 10, 2024

It's definitely possible through software it just might take up some flash space
And while there are times when both pins are high/low, that equates to another resistance value that can be picked up

@thisiskeithb thisiskeithb changed the title Single pin for BTN for lcd connectors [FR] (feature summary) [FR] Single pin for LCD BTN EN1, EN2, and ENC May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Feature Request Features requested by users.
Projects
None yet
Development

No branches or pull requests

2 participants