Comments (7)
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.
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.
Pull resistors are now explicitly Up, Down or none using an enum.
from esp32encoder.
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.
:D
from esp32encoder.
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.
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)
- Trouble with RPM calculation HOT 2
- cannot even compile example for regular esp32 dev board HOT 7
- Encoder limit? ESP32S3 Bootloop Issue "Too Many Encoders!" HOT 4
- wrong counting with fast encoder HOT 2
- Liberary doesn't work when generating a PWM signal (when pins 15 and 16 split the PWM and encoder) HOT 6
- Support for MCP23017 GPIO expander
- compatibility with ESP32 core V3 HOT 2
- Not compiling for ESP32-S2 HOT 3
- Compile error 0.10.0 and 0.10.1 HOT 6
- Encoder Library with PCNT as Frequency Counter
- Function working and direction HOT 6
- Encoder not working in IO2, IO4. HOT 3
- Compile fails with soc.h not found HOT 5
- Not working with tasks HOT 1
- Compiling error HOT 12
- Attach Single edge problem HOT 1
- ESP32-C3 compile fail
- setCount after setup() HOT 2
- Encoder get difference from last read HOT 1
- Definition of NONE confliccts with other libraries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32encoder.