我参照demo来写i2c通信data一直是0读不到数据,请问该怎么写?
查看更多
Which I2C device do you want to write or read data to?
你的实现逻辑没有按照I2C的时序来实现。熟悉下I2C的时序,参照demo里的AT24CXX_ReadOneByte、AT24CXX_WriteOneByte来实现。
发布 问题
分享 好友
手机 浏览
回到 顶部
How should I correct it?
@leiyu Does this device have industry markings?
@AnatolSher no
I want to know if my code logic is wrong?
@leiyu How did you initialize the ALS sensor?
A very detailed description is available at https://github.com/adafruit/Adafruit_LTR329_LTR303/blob/main/Adafruit_LTR329_LTR303.cpp
You may be using LTR-X116A. The register addresses will change but the sensor control logic will not.
1458d16ef137505f38091e924415a4f5.pdf