Skip to content

Commit

Permalink
solves no matching function TwoWire::begin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodaille committed Nov 16, 2016
1 parent 6553781 commit a82e2a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BMP280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ BMP280::BMP280()
*/
char BMP280::begin(int sdaPin, int sclPin)
{
Wire.begin(sdaPin,sclPin);
// cf: https://github.com/mahfuz195/BMP280-Arduino-Library/issues/2
// no matching function for call to 'TwoWire::begin(int&, int&)
//Wire.begin(sdaPin,sclPin);
Wire.begin();
return (readCalibration());
}

Expand Down

0 comments on commit a82e2a5

Please sign in to comment.