Ports on the Distance Sensor

Hi,

my_Distance_portI2C = gpg.init_distance_sensor('I2C')
time.sleep(0.1)

What do I have to put in to change the port of the sensor in Python?

Hi there,

I suggest you go through the following section in the documentation. This will tell you everything you need to know about the port naming conventions.
https://di-sensors.readthedocs.io/en/master/structure.html#hardware-interface

Thank you!