VL53L3CX - esp32 - XSHUT tied to 3.3V

Hi,
do you think it's possible to put the XSHUT pin of a VL53L3CX to 3.3V (so it's always on)?

I'm using an ESP 32 and using the STM32duino VL53L3CX library (with a wrapper).
My code works if I control XSHUT, but not if I don't

thank you!
Vl53lxWrapper.cpp (1.6 KB)
Vl53lxWrapper.h (571 Bytes)

#include <Arduino.h>
#include <Wire.h>
#include "Vl53lxWrapper.h"

int xshutPin = 7;
int interruptPin = 6;
int sdaPin = 8;
int sclPin = 9;


//Distance
Vl53lxWrapper *vl53lxWrapper;
int sensorDeviceAddress = 0x12;
int distance;
int distsanceMin = 300; //distance min pour détecter une presence
bool measureDistance = false;



void setup()
{
  Serial.begin(115200);
  //IR et distance
  vl53lxWrapper = new Vl53lxWrapper(xshutPin,
                                    interruptPin,
                                    sensorDeviceAddress,
                                    sdaPin,
                                    sclPin);

}

void loop()
{

   VL53LX_MultiRangingData_t measurement = vl53lxWrapper->getLatestMeasurement();
   distance = measurement.RangeData->RangeMilliMeter;
   Serial.println(distance);
  delay(500);
}

" This pin is an active-low shutdown input; the board pulls it up to VDD to enable the sensor by default. Driving this pin low puts the sensor into hardware standby. This input is not level-shifted." - Pololu.
I don't quite understand what do you want to do?

leave it at 3.3V (high), meaning not controlling it with the esp32.
The code doesnt seem to work

And, where do you control XSHUT pin in your code? I just see a pin definition.

In the library / constructor

You control the pin it in the constructor??

the Pololu VL53L3CX documentation states
This pin is an active-low shutdown input; the board pulls it up to VDD to enable the sensor by default. Driving this pin low puts the sensor into hardware standby.
if you have one device leave the XSHUT pin disconnected unless you wish to to put it in standby
I use XSHUT when using multiple TOF sensors to change the I2C address

post #2

vl53lxInstance.begin();
  vl53lxInstance.VL53LX_Off();
  error = vl53lxInstance.InitSensor(sensorDeviceAddress);

by default it changes the adress so yes it triggers the XHSUT pin to low then high.

So it seems possible...

But when I do leave it unconnected I get giberish

-19640
526
8191
8191
8191
8191
8191
8191
8191
8191
8191
8191
8191
58
8191
58
8191
58
8191
58
8191