File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,11 @@ class SH1106Wire : public OLEDDisplay {
71
71
this ->_address = _address;
72
72
this ->_sda = _sda;
73
73
this ->_scl = _scl;
74
- this ->_wire = (_i2cBus==I2C_ONE)?&Wire:&Wire1;
74
+ #if !defined(ARDUINO_ARCH_ESP32)
75
+ this ->_wire = &Wire;
76
+ #else
77
+ this ->_wire = (_i2cBus==I2C_ONE) ? &Wire : &Wire1;
78
+ #endif
75
79
this ->_frequency = _frequency;
76
80
}
77
81
Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ class SSD1306Wire : public OLEDDisplay {
73
73
this ->_address = _address;
74
74
this ->_sda = _sda;
75
75
this ->_scl = _scl;
76
- this ->_wire = (_i2cBus==I2C_ONE)?&Wire:&Wire1;
76
+ #if !defined(ARDUINO_ARCH_ESP32)
77
+ this ->_wire = &Wire;
78
+ #else
79
+ this ->_wire = (_i2cBus==I2C_ONE) ? &Wire : &Wire1;
80
+ #endif
77
81
this ->_frequency = _frequency;
78
82
}
79
83
You can’t perform that action at this time.
0 commit comments