2023-03-03 06:19 AM
Hello all,
i have 2 VD6283TX sensors connected on 1 i2c handler and i want to change adress on one of them. Which command should i send to sensor to change adress ?
Something like this ?
HAL_I2C_Master_Transmit(hi2c, A2_LIGHT_SENSOR_INSTANCE_0, txBuffer, 2, 1000);
tx buffer is array with old adress and new addres
Thank you so much.
2023-03-08 01:05 AM
Hello,
To perform the address change the host must driver the GPIO1 (respecting some timings constraints). Such operations are handled by the system itself and not by the driver.
The way to change the I2C address is explained in the section 3.4.2 of the datasheet.
Regards
Anne