Skip to content

Commit

Permalink
Update max44009.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Bolukan authored Dec 7, 2018
1 parent ba645e5 commit f6d173b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libraries/Max44009/max44009.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
Max44009::Max44009(const uint8_t address, const uint8_t dataPin, const uint8_t clockPin)
{
_address = address;
#ifdef ESP8266
if ((dataPin < 255) && (dataPin < 255))
{
Wire.begin(dataPin, clockPin);
#else // other platforms
} else {
Wire.begin();
#endif
}
// TWBR = 12; // Wire.setClock(400000);
_data = 0;
_error = 0;
Expand Down Expand Up @@ -181,4 +182,4 @@ void Max44009::write(uint8_t reg, uint8_t value)
_error = Wire.endTransmission();
}

// --- END OF FILE ---
// --- END OF FILE ---

0 comments on commit f6d173b

Please sign in to comment.