Need to make the Pins PULL_DOWN
Opened this issue · 2 comments
dmccreary commented
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 commented
check the code repo now the code updated.
zerovijay commented
Updated repository