i have 3 TOF sensor (GY-VL53L0X) and im using Teensy 4.1v and there are 3 I2c bus option
i wanted to use the i2c bus 2 (SDA2 SCL2) and im not able to change the i2c pins from the default pins to the 2nd i2c bus pins
what i did to change the i2c bus pin of GY-VL53L0X
#include <VL53L0X.h>
VL53L0X sensorL;
Wire2.begin();
Serial.println("L");
digitalWrite(LeftTOF, HIGH);
delay(150);
sensorL.setBus(&Wire2);
sensorL.init(true);
delay(100);
sensorL.setAddress((uint8_t)1);
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.