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

Need to make the Pins PULL_DOWN #1

Open
dmccreary opened this issue Aug 8, 2021 · 2 comments
Open

Need to make the Pins PULL_DOWN #1

dmccreary opened this issue Aug 8, 2021 · 2 comments

Comments

@dmccreary
Copy link

Thank you for the wonderful video. I hooked the center pin (+) up to the 3.3v rail, but it would not work consistently. By making the pins PULL_DOWN it worked perfectly! Thank you for your great work!

I change lines 14 to 16 of the file encoder.py to the following:

self.dt_pin = Pin(dt, Pin.IN, Pin.PULL_DOWN)
self.clk_pin = Pin(clk, Pin.IN, Pin.PULL_DOWN)
self.sw_pin = Pin(sw, Pin.IN, Pin.PULL_DOWN)

@zerovijay
Copy link

check the code repo now the code updated.

@zerovijay
Copy link

Updated repository

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