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

Compilation Error : digitalPintoInterrupt #165

Open
rkuo2000 opened this issue Dec 12, 2023 · 5 comments
Open

Compilation Error : digitalPintoInterrupt #165

rkuo2000 opened this issue Dec 12, 2023 · 5 comments
Labels
enhancement New feature or request no-issue-activity pending It is a feature/bug-fix request, currently on hold

Comments

@rkuo2000
Copy link

WARNING: library MPU6050 claims to run on avr, samd, sam, esp8266, esp32, stm32, renesas, renesas_portenta, renesas_uno architecture(s) and may be incompatible with your current board which runs on AmebaPro2 architecture(s).
D:\Users\rkuo2\Documents\Arduino\examples\IMU\MPU6050_DMP6_Teapot\MPU6050_DMP6_Teapot.ino: In function 'void setup()':
D:\Users\rkuo2\Documents\Arduino\examples\IMU\MPU6050_DMP6_Teapot\MPU6050_DMP6_Teapot.ino:135:18: error: 'digitalPinToInterrupt' was not declared in this scope; did you mean 'digitalPinToPort'?
135 | Serial.print(digitalPinToInterrupt(INTERRUPT_PIN));
| ^~~~~~~~~~~~~~~~~~~~~
| digitalPinToPort
D:\Users\rkuo2\Documents\Arduino\examples\IMU\MPU6050_DMP6_Teapot\MPU6050_DMP6_Teapot.ino:137:5: error: 'attachInterrupt' was not declared in this scope
137 | attachInterrupt(digitalPinToInterrupt(INTERRUPT_PIN), dmpDataReady, RISING);
| ^~~~~~~~~~~~~~~

exit status 1

Compilation error: 'digitalPinToInterrupt' was not declared in this scope; did you mean 'digitalPinToPort'?

@M-ichae-l
Copy link
Collaborator

WARNING: library MPU6050 claims to run on avr, samd, sam, esp8266, esp32, stm32, renesas, renesas_portenta, renesas_uno architecture(s) and may be incompatible with your current board which runs on AmebaPro2 architecture(s).

I believe this is the reason.

@rkuo2000
Copy link
Author

AMB82-MINI seems not support AttachInterrupt(digitalPinToInterrupt) in Arduino

Copy link

This issue is stale because it has been open for 14 days with no activity.

@M-ichae-l
Copy link
Collaborator

MPU6050 is supported by latest early release version 4.0.7

@rkuo2000
Copy link
Author

rkuo2000 commented Mar 3, 2024

Yes, but digitalPintoInterrupt is not supported, so need to comment it out if used.

@M-ichae-l M-ichae-l added enhancement New feature or request pending It is a feature/bug-fix request, currently on hold labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-issue-activity pending It is a feature/bug-fix request, currently on hold
Projects
None yet
Development

No branches or pull requests

2 participants