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

Usage of Wire library. #1

Open
Koepel opened this issue Jan 17, 2019 · 0 comments
Open

Usage of Wire library. #1

Koepel opened this issue Jan 17, 2019 · 0 comments

Comments

@Koepel
Copy link

Koepel commented Jan 17, 2019

By including a few (old) libraries, you also put the wrong use of the Wire library into your project. It does not matter which Wire library or which software-Wire you use.

I have made a page for common mistakes.
See also my alternative explanation of the functions of the Wire library.

In the file "Arduitools/remoteDomo/domoreinserre/BH1750/BH1750.cpp" you may remove the Wire.beginTransmission() and Wire.endTransmission() from the function readLightLevel().
The author has fixed the issue and has rewritten the code.

The file "Arduitools/Compas_Module/library/Arduino-MPU6050/MPU6050.cpp" has this issue. I am trying hard to annoy the author, hoping that he finally gives up and will fix it. So far no luck.

The file "Arduitools/remoteDomo/domoreinwk/Adafruit-BMP085-Library-master/Adafruit_BMP085.cpp" has this issue. I made it years ago, but Adafruit does not fix it.

You can keep the issues, accept that the code makes it slower and hope for the best. Or you can fix it, hopefully without causing new issues.
Background story: https://www.arduinoforum.nl/viewtopic.php?f=12&t=2929

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