I2C-0的Raspberry Pi RTC
我希望使用I2C向我的Raspberry Pi添加一个实时时钟,但我想使用 i2c-0 (GPIO 0和GPIO 1),而不是 i2c-1 (GPIO 2和GPIO 3)。 Raspberry Pi检测到实时时钟,但是当我添加时
dtoverlay = i2c-rtc,ds1307
to /boot/config.txt ,它在使用时不会说'uu'(在使用中)而不是地址(68)
i2cdetect -y 0
有没有任何方法将某些内容添加到config.txt文件中以定位I2C-0而不是I2C-1?
I am looking to add a real-time clock to my Raspberry Pi using i2c, but I want to use i2c-0 (GPIO 0 and GPIO 1) rather than i2c-1 (GPIO 2 and GPIO 3). The real-time clock gets detected by the Raspberry Pi, but when I add
dtoverlay=i2c-rtc,ds1307
to /boot/config.txt, it doesn’t say ‘UU’ (in use) instead of the address (68) when using
i2cdetect -y 0
Is there any way of adding something to the config.txt file in order to target the i2c-0 instead of the i2c-1?
I used the Adafruit tutorial in order to add it, but obviously only worked when connecting to the i2c-1 and not i2c-0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论