raphaelyancey / pyKY040

🎛 High-level Python interface for the KY040 rotary encoder
https://pypi.org/project/pyky040/
GNU General Public License v3.0
26 stars 16 forks source link

CLK and DT -- pull up to remove dependency on carrier board? #9

Open naggie opened 3 years ago

naggie commented 3 years ago

Hi,

Looking at the code it seems DT + CLK are pulled low. The common carrier board has 10K pull-ups, which presumably override this so the DT + CLK become pulled-up.

Is there a reason why they're pulled down and not up in the code? Potentially, if they were pulled up I could connect a rotary encoder without the carrier board or external pull ups.

Thanks!

Callan