Giter VIP home page Giter VIP logo

Comments (7)

mfarabee avatar mfarabee commented on August 22, 2024

I was able to answer my own questions after some experimenting. I was able to use to code above and it worked for using the NPN open collector. Direction was not a problem.

from esp32encoder.

Fusseldieb avatar Fusseldieb commented on August 22, 2024

I was able to answer my own questions after some experimenting. I was able to use to code above and it worked for using the NPN open collector. Direction was not a problem.

Can you please elaborate?

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

Pull resistors are now explicitly Up, Down or none using an enum.

from esp32encoder.

mfarabee avatar mfarabee commented on August 22, 2024

To elaborate on the question I asked:
Previously I was not able to define the pins as using the internal pullup, only pulldown or none. I was building a lathe DRO and had an encoder that required a pullup. I was hoping to use the internal pullup. The way that I achieved this was to disable the pulldown resistor in the code, attach the encoder, then redefine the pins to use the internal pullups.

With the new update, this is no longer necessary as I can specify pullup, pulldown or none!
THANK YOU!

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

:D

from esp32encoder.

Fusseldieb avatar Fusseldieb commented on August 22, 2024

With the new update, this is no longer necessary as I can specify pullup, pulldown or none!

Can you please post a snipped of that code?
The documentation of this repo lacks some examples.

from esp32encoder.

madhephaestus avatar madhephaestus commented on August 22, 2024

Per Arduino convention, the examples are in the examples folder: https://github.com/madhephaestus/ESP32Encoder/blob/master/examples/Encoder/Encoder.ino and are availible in the IDE like any other example program.

from esp32encoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.