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

AS5600.h Library , trouble with a second sensor #49

Closed
laptophead opened this issue Dec 7, 2023 · 4 comments
Closed

AS5600.h Library , trouble with a second sensor #49

laptophead opened this issue Dec 7, 2023 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@laptophead
Copy link

I am trying to implement 2 sensors on the same IC2 bus. I bought the one called AS5600L that has an address of 0x40. Tried to implement it using setAddress, but the library won't execute it.
Says there is no member. Please help.
Mitch

AS5600_position_M_01_TwoSensors:27:11: error: 'class AS5600' has no member named 'setAddress'; did you mean 'getAddress'?
as5600L.setAddress(0x40); // AS5600L only

@RobTillaart RobTillaart self-assigned this Dec 7, 2023
@RobTillaart RobTillaart added the question Further information is requested label Dec 7, 2023
@RobTillaart
Copy link
Owner

Thanks for the issue.
Is it under the right repository?
Will look into it later today

@RobTillaart
Copy link
Owner

Probably you need to change the type from
AS5600
To
AS5600L
in the code.

Is this issue in the right repository?
As it is not a TCA9548 question?

@laptophead
Copy link
Author

I figured it, yes the type should be like you said, thanks
I wish you made an example.
Your multiple sensor example is for 2 IC2 buses, I will try to ad my code to the library

@RobTillaart RobTillaart transferred this issue from RobTillaart/TCA9548 Dec 7, 2023
@RobTillaart
Copy link
Owner

This discussion is continued in #48
So I close this one.

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

No branches or pull requests

2 participants