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

startWakeOnMotion only configures interrupt on INT1, but accepts intpin #16

Open
kjs-eir opened this issue Jan 30, 2025 · 3 comments
Open

Comments

@kjs-eir
Copy link

kjs-eir commented Jan 30, 2025

The ICM42670::startWakeOnMotion(uint8_t intpin, ICM42670_irq_handler handler) seems hardcoded to only configure interrupts on INT1. Shouldn't it include if statement or similar so if intpin == 2 it will configure INT_SOURCE3 and INT_SOURCE4 with inv_imu_set_config_int2 instead?

@tdk-opensource
Copy link
Collaborator

Thank you for opening this issue! We will look into it shortly.

Notifying @tdk-invn-oss/motion-maintainers @tdk-invn-oss/arduino-maintainers

@rbuisson-invn
Copy link
Contributor

Hello @kjs-eir ,
Your understanding is correct, only INT1 can be used today with the ICM42670 Arduino library.
We take your request into account, we will implement INT2 support and get back to you when available.
By the way, you finally manage to use the library on your platform, could you explain what was the issue.

Regards,

@kjs-eir
Copy link
Author

kjs-eir commented Feb 4, 2025

Thanks,

Yes, the issue was not relate to the library or implementation at all, but the ICM-42670-p, had been in-sufficiently solder on my PCB, resulting in one or more pins not beeing connected.

Regards,
Karl-Johan

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

No branches or pull requests

3 participants