-
Notifications
You must be signed in to change notification settings - Fork 3
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
Used this about 6 months ago and it worked fine, now. . . #3
Comments
Not sure I can help right away - I haven’t done anything with this code (or indeed anything at all in the ESP32 world) for quite some time. If I get some time I’ll have a look, but that won’t be for a week or two….
… On 8 Nov 2022, at 1:00 pm, bogie6040 ***@***.***> wrote:
When compiling in Arduino IDE 2.0.1 with the latest ESP32 board drivers I now get a compile error of:
Compilation error: 'PCNT' was not declared in this scope
Which points to line 42 in the ESP32_Quad_Encoder.cpp file:
int intr_status = PCNT.int_st.val;
Any ideas how to correct this? I tried loading the latest library ESP32Encoder from madhephaestus and even downgrading to the 0.3.x versions to no avail.
Does the newer version of ESP32Encoder support directly now what your modified version was doing?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Just did a quick google of (PCNT arduino) and got lots of hits about this particular error. A number of workarounds are addressed. I can’t usefully add to all that at this stage.
Roman
… On 8 Nov 2022, at 1:00 pm, bogie6040 ***@***.***> wrote:
When compiling in Arduino IDE 2.0.1 with the latest ESP32 board drivers I now get a compile error of:
Compilation error: 'PCNT' was not declared in this scope
Which points to line 42 in the ESP32_Quad_Encoder.cpp file:
int intr_status = PCNT.int_st.val;
Any ideas how to correct this? I tried loading the latest library ESP32Encoder from madhephaestus and even downgrading to the 0.3.x versions to no avail.
Does the newer version of ESP32Encoder support directly now what your modified version was doing?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Ok, thanks for looking at it. I will try to load an older version of the IDE - maybe that will make the original code work as it once did. |
Just figured out the problem I had with the "PCNT" not declared error. Here's what worked for me: |
It compiles after adding headers into ESP32_Quad_Encoder.cpp:
Not tested. |
When compiling in Arduino IDE 2.0.1 with the latest ESP32 board drivers I now get a compile error of:
Compilation error: 'PCNT' was not declared in this scope
Which points to line 42 in the ESP32_Quad_Encoder.cpp file:
int intr_status = PCNT.int_st.val;
Any ideas how to correct this? I tried loading the latest library ESP32Encoder from madhephaestus and even downgrading to the 0.3.x versions to no avail.
Does the newer version of ESP32Encoder support directly now what your modified version was doing?
The text was updated successfully, but these errors were encountered: