我已經寫了一個Arduino的類,讀取HiTechnic LEGO Mindstorms compass sensor的指南針數據。Arduino上的不同I2C地址?
使用線庫,我可以非常好地從相應的寄存器中獲取數據。在我的Arduino庫中,我通過0x01
對傳感器進行了尋址,其中有人已經完成了on the Arduino forums。但在網絡上的其他地方(RobotC-forums for LEGO Mindstorms或in the code example at the very bottom of this document),它說,該傳感器的I2C地址是0x02
。
那麼爲什麼我必須使用地址0x01
才能與我的傳感器通信,而其他編程語言似乎是0x02
?
這似乎是它。謝謝。 –