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

Can't execute example #2

Open
N0ury opened this issue Aug 15, 2016 · 3 comments
Open

Can't execute example #2

N0ury opened this issue Aug 15, 2016 · 3 comments

Comments

@N0ury
Copy link

N0ury commented Aug 15, 2016

At compile time, I have the following errors:

Arduino : 1.6.10 (Mac OS X), Carte : "Arduino Duemilanove or Diecimila, ATmega328"

/Users/nb/Dropbox/arduino/libraries/BMP280-Arduino-Library/BMP280.cpp: In member function 'char BMP280::begin(int, int)':
/Users/nb/Dropbox/arduino/libraries/BMP280-Arduino-Library/BMP280.cpp:33:26: error: no matching function for call to 'TwoWire::begin(int&, int&)'
Wire.begin(sdaPin,sclPin);
^
/Users/nb/Dropbox/arduino/libraries/BMP280-Arduino-Library/BMP280.cpp:33:26: note: candidates are:
In file included from /Users/nb/Dropbox/arduino/libraries/BMP280-Arduino-Library/BMP280.cpp:19:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:52:10: note: void TwoWire::begin()
void begin();
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:52:10: note: candidate expects 0 arguments, 2 provided
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:53:10: note: void TwoWire::begin(uint8_t)
void begin(uint8_t);
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:53:10: note: candidate expects 1 argument, 2 provided
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:54:10: note: void TwoWire::begin(int)
void begin(int);
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src/Wire.h:54:10: note: candidate expects 1 argument, 2 provided
exit status 1
Erreur de compilation pour la carte Arduino Duemilanove or Diecimila

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.

Can you please help me

@mahfuz195
Copy link
Owner

Don't sure which Wire.h library you are using. Try removing the arguments in Wire.begin() to match the parameters.

@maopiccoto
Copy link

I have same issue

@Atominick
Copy link

#7

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

4 participants