![]() |
I2C Class Issues
Disclaimer: I'm aware that the I2C class states "This class is intended to be used by sensor (and other I2C device) drivers. It probably should not be used directly."
We have been playing with the I2C class a fair amount lately and I wanted to share those results with others and see if anyone else can confirm some of these odd behaviors. I'm not sure if its just the device we are using or if several of the class methods are really broken. We have a Lidar Lite v3 plugged into the kOnBoard I2C port. We have the Logic 4 as a scope/logic analyser. We have a working Pixy that we add to the bus, adding the Pixy doesn't change the behavior. Class functions/members/methods: Code:
AddressOnly() // Doesn't appear to work at allA few specific questions: 1.) Can anyone else confirm that AddressOnly() doesn't work at all? 2.) Has anyone seen issues with "addressed" reads from I2C devices? (Pixy uses ReadOnly()) More generally, does anyone have experience with this type of behavior? Any other thoughts? We were able to successfully read and write to the Lidar with the following code snippet (utilizing only "working" methods): Code:
#define LIDAR_I2C_DEFAULT_ADDR 0x62 |
| All times are GMT -5. The time now is 09:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi