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

pcint.h: error: 'INT_MODE_TYPE' has not been declared #11

Open
KKuKK opened this issue Jun 25, 2024 · 0 comments
Open

pcint.h: error: 'INT_MODE_TYPE' has not been declared #11

KKuKK opened this issue Jun 25, 2024 · 0 comments

Comments

@KKuKK
Copy link

KKuKK commented Jun 25, 2024

Hi
I tried to use your library with an MEGA2560. I tried to compile the example btnled.ino and it stops compiling with following error:

"PCINT\src/pcint.h:108:48: error: 'INT_MODE_TYPE' has not been declared
void PCattachInterrupt(HANDLER_TYPE userFunc, INT_MODE_TYPE mode) {"

I am using Arduino IDE 1.8.57.0

I found this issue in an articlle which says

"It looks like when adding support for STM32F1 and STM32F4 processors they had to make the RISING/FALLING/CHANGE argument something other than 'uint8_t'. They did that by defining "INT_MODE_TYPE" but it seems they only do that when "PCINT_NO_MAPS" is defined. I don't think they tested on a MEGA after making this change."

Is there any solution? I think this lib is easy to use. There are two ohters which I cannot handle.
Thanks for your help.
Greatings Klaus

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