File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,6 @@ void handleButtonInServerMode();
106
106
bool loadConfig (ObsConfig &cfg);
107
107
void copyCollectedSensorData (DataSet *set);
108
108
109
- // The BMP280 can keep up to 3.4MHz I2C speed, so no need for an individual slower speed
110
- void switch_wire_speed_to_VL53 (){
111
- Wire.setClock (400000 );
112
- }
113
- void switch_wire_speed_to_SSD1306 (){
114
- Wire.setClock (500000 );
115
- }
116
-
117
109
void setupSensors () {
118
110
sensorManager = new HCSR04SensorManager;
119
111
@@ -211,15 +203,14 @@ void setup() {
211
203
// Setup display
212
204
// ##############################################################
213
205
Wire.begin ();
206
+ Wire.setClock (500000 );
214
207
Wire.beginTransmission (displayAddress);
215
208
byte displayError = Wire.endTransmission ();
216
209
if (displayError != 0 ) {
217
210
Serial.println (" Display not found" );
218
211
}
219
212
obsDisplay = new SSD1306DisplayDevice;
220
213
221
- switch_wire_speed_to_SSD1306 ();
222
-
223
214
obsDisplay->showLogo (true );
224
215
obsDisplay->showTextOnGrid (2 , obsDisplay->startLine (), OBSVersion);
225
216
You can’t perform that action at this time.
0 commit comments