Dec-04-2018, 05:27 PM
Hello all,
I need to write to an I2C bus
The problem is that i really need to send 0x000017 with this command to a device
<<bus_device.write(bytes([A_DEVICE_REGISTER]), stop=True)>>
When i set A_DEVICE_REGISTER to 0x000017 0x17 is send.
That's not what is needed for the device i want to send it to, the leading zero's must be send also
Anyone any idea how to solve this
Warm regards
I need to write to an I2C bus
The problem is that i really need to send 0x000017 with this command to a device
<<bus_device.write(bytes([A_DEVICE_REGISTER]), stop=True)>>
When i set A_DEVICE_REGISTER to 0x000017 0x17 is send.
That's not what is needed for the device i want to send it to, the leading zero's must be send also
Anyone any idea how to solve this
Warm regards