Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile in Arduino IDE 1.8.19 #4

Open
61pete opened this issue Dec 9, 2024 · 0 comments
Open

Fails to compile in Arduino IDE 1.8.19 #4

61pete opened this issue Dec 9, 2024 · 0 comments

Comments

@61pete
Copy link

61pete commented Dec 9, 2024

Failed when compiling at line 92, ESP32Encoder::useInternalWeakPullResistors = UP;

with UP was not declared in this scope, did you mean UDP.

I had a bright spark and scratched through the encoder src files and came up with "puType::up" which seemed logical to me but I've only been coding for a week, so there's that.

When I changed line 92 to ESP32Encoder::useInternalWeakPullResistors = puType::up;
it compiled fine and works great.

If using ESP32 encoder by Kevin Harrimgton V0.10.2 and older then "UP" compiles fine.
If using V0.11.0 or newer then puType::up is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant