Skip to content

Commit e17ad84

Browse files
Merge pull request #76 from MURPHYENGINEERING/[email protected]
Disambiguate TwoWire::begin for [email protected]
2 parents d7e55cd + ea45d28 commit e17ad84

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/BMP180.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ boolean BMP085::begin(uint8_t mode) {
99
mode = BMP085_ULTRAHIGHRES;
1010
oversampling = mode;
1111
//begin(int sdaPin, int sclPin, uint32_t frequency)
12-
Wire.begin(13, 12, 100000);
12+
Wire.begin(13, 12, 100000U);
1313

1414
if (read8(0xD0) != 0x55) return false;
1515

src/oled/SSD1306Wire.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ class SSD1306Wire : public OLEDDisplay {
5555

5656

5757
bool connect() {
58-
pinMode(_rst,OUTPUT);
59-
digitalWrite(_rst, LOW);
60-
delay(50);
61-
digitalWrite(_rst, HIGH);
62-
63-
Wire.begin(this->_sda, this->_scl);
64-
// Let's use ~700khz if ESP8266 is in 160Mhz mode
65-
// this will be limited to ~400khz if the ESP8266 in 80Mhz mode.
66-
Wire.setClock(700000);
67-
return true;
58+
pinMode(_rst,OUTPUT);
59+
digitalWrite(_rst, LOW);
60+
delay(50);
61+
digitalWrite(_rst, HIGH);
62+
63+
// Let's use ~700khz if ESP8266 is in 160Mhz mode
64+
// this will be limited to ~400khz if the ESP8266 in 80Mhz mode.
65+
Wire.begin(int(this->_sda), this->_scl, 700000U);
66+
67+
return true;
6868
}
6969

7070
void display(void) {

0 commit comments

Comments
 (0)