I2C-0的Raspberry Pi RTC

发布于 2025-01-24 18:31:04 字数 615 浏览 4 评论 0原文

我希望使用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?

我使用 adafruit教程< /a>为了添加它,但显然只有在连接到I2C-1而不是I2C-0时起作用。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文