You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the library.
I think this is supposed to be a 'pull request', but unfortunately I don't 'do' github.
I wanted to use the 'simple' functions, but the device I have uses a 16 bit register address space. Therefore, I've added read and write functions for uint16_t reg values. All the changes are within i2c_device.h. In the attached they are all flagged with '\achrn', though if you merge this into the library I don't expect those labels need to remain - it's just a search label to assist review.
My additions assume the 16 bit register address is bigendian.
Cool. Thanks for this.
I'm in the middle of writing an automated test suite at the moment. I'll add this to my "to do" list and merge it later. That might take a couple of months. :)
Hi, thanks for the library.
I think this is supposed to be a 'pull request', but unfortunately I don't 'do' github.
I wanted to use the 'simple' functions, but the device I have uses a 16 bit register address space. Therefore, I've added read and write functions for uint16_t reg values. All the changes are within i2c_device.h. In the attached they are all flagged with '\achrn', though if you merge this into the library I don't expect those labels need to remain - it's just a search label to assist review.
My additions assume the 16 bit register address is bigendian.
I've only tested with one device - a ST VL6180X ( a time-of-flight proximity sensor). https://www.st.com/en/imaging-and-photonics-solutions/vl6180x.html It's the only thing I have that has 16 bit register addresses.
i2c_device.h.txt
The text was updated successfully, but these errors were encountered: