我參照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