Skip to content

Using encoders without pushbutton? #12

@sobrock12

Description

@sobrock12

Hey John!

Is it possible to use this library with encoders that don't have pushbuttons? Or if I have encoders that have pushbuttons but don't want to use them in my project, is there any way I can utilize your wonderful library while leaving the pushbutton pins not connected to the board?

It looks like no matter what I need to pass three variables for pin locations in while creating a new Encoder object, so I'm assuming if I just pass in the pins A and B then that won't work...is there perhaps any way I can pass in a null value for the pushbutton pin and still get everything to compile?

The reason I'm not connecting push buttons is to save digital pin space...I've got an Arduino Micro and I'm trying to hook up 5 encoders along with some other switches so all of my digital pins are basically taken up. I may be able to move the switches onto some analog pins and make that work but still, if I can use your library and get away without the pushbuttons I'd love that!

I've tried several other encoder library solutions and none seem to be giving me the result I need so I'd like to give yours a go!

I'm still pretty fresh with Arduino programming so forgive me if this is an easy issue to solve.

Thanks!
Stan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions