Trouble with I2c mix

Hello, to start off Im working with a college robotics club. we are all quite new to this and don’t have a professor helping us.

we are hitting a road block using a Qwiic I2C multiplexer to get different addresses for VL53L1X and HCSR04 sensors

we can get the VLs to work but the HCSR04 library seems to work different

here’s how we got the VLs to work:

#include <Wire.h>

#include <SparkFun_I2C_Mux_Arduino_Library.h>

SFEVL53L1X **distanceSensor;

QWIICMUX mux;

int NUMBER_OF_SENSORS = 2;

void setup(){

Serial.begin(115200);

Wire.begin();

distanceSensor = new SFEVL53L1X *[NUMBER_OF_SENSORS];

for (int x = 0; x < NUMBER_OF_SENSORS; x++)

distanceSensor = new SFEVL53L1X(Wire);

blah blah blah obviously there is more setting up but we can’t even get this far with the hcrs04 sensors

}

Try getting the HSCR04 to work on their own (no mux) first https://learn.sparkfun.com/tutorials/qw … okup-guide

Then go back and try getting both going by modifying code/setup