+
Skip to content

Need to make the Pins PULL_DOWN #1

@dmccreary

Description

@dmccreary

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)

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载