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

QMC5883 library to Attiny85 #1

Closed
Ulissesp opened this issue Oct 31, 2019 · 1 comment
Closed

QMC5883 library to Attiny85 #1

Ulissesp opened this issue Oct 31, 2019 · 1 comment

Comments

@Ulissesp
Copy link

Since the wire.h library dont work with Attiny85, we need to use TinyWireM lib.
What do I need to change at QMC5883 library to wok with Attiny85?
Could you help me?
Thank you.

@mprograms
Copy link
Owner

QMC5883L Compass Library uses wire.h for its I2C communications. As you noted, the ATTiny85 does not have this support. I am not 100% familiar with the inner workings of the TinyWireM Library nor do I have a ATTiny85 laying around to test. However, if the functions of Wire and TinyWireM are the same, you might only have to do a quick refactoring of Wire.functionName() to TinyWireM.functionName(). Everything else is related to the QMC5883 chipset and using the QMC5883 output so if you get the I2C communication down, everything should will stay the same.

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

2 participants