Skip to content

Commit 134a2cc

Browse files
committed
changing I2C clock to 400 KHz
1 parent 9c642f8 commit 134a2cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/OptaController.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ void Controller::begin() {
302302
pinMode(OPTA_CONTROLLER_DETECT_PIN, INPUT_PULLUP);
303303
/* initialize the controller as I2C MASTER */
304304
Wire.begin();
305+
Wire.setClock(400000);
305306

306307
_send(OPTA_CONTROLLER_FIRST_AVAILABLE_ADDRESS, msg_opta_reset(), 0);
307308
delay(OPTA_CONTROLLER_SETUP_INIT_DELAY);

0 commit comments

Comments
 (0)