raspberry-pi3 - 使用 dt-blob.dts 配置 GPIO 引脚时,哪个 pin@pxx 对应于 40 引脚接头上的 #12?
问题描述
我的 Raspberry Pi 3B 运行 Jessie-Lite。我想将物理引脚 12/BCM 引脚 18/接线 Pi 引脚 1 配置为输出,设置为低。
在 Stretch 上,这可以通过 config.txt gpio=18=op,dl 轻松完成
在以前的版本中,这显然是通过编辑 dt-blob.dts 文件来完成的(https://www.raspberrypi.org/documentation/configuration/pin-configuration.md)
但是,在pins_3b1 或pins_3b2 (Pi 3 B) 部分,我找不到与我的目标管脚对应的参考(物理管脚12/BCM 管脚18/接线Pi 管脚1)。没有 pin@p12 或 pin@p18。有一个 pin@p1 但在 videocore {} 部分内。
谢谢你。
解决方案
[来自https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=237796&p=1453560#p1453560]
dt-blob 并不意味着列出所有引脚 - 只是那些具有特定功能且需要非默认值的引脚。如果要将 dt-blob 中的 GPIO18 初始化为低电平输出,则需要添加如下内容:
pin@p18 { function = "output"; startup_state = "active"; termination = "no_pulling"; polarity = "active_low"; };
推荐阅读
- python - Plotly:如何创建包含下拉菜单的多面条形图?
- gatling - 我怎样才能使 check()....findAll.Save 在 Gatling 中不是强制性的?
- javascript - 无法使用 Multer 上传多个文件
- r - 使用 dplyr 对 naniar 的输出进行分组,嵌套/取消嵌套,与新版本的 R 兼容
- ruby-on-rails - 使用 Rails Active Storage 分离图像
- c# - AzureDevOps 上的 TF.exe 和 TfSecurity.exe 身份验证
- service-worker - 为什么 PWA 不能安装在 PC 上
- python - 分组并用重复项填充缺失的日期时间值
- android - BRANCH SDK FailTrouble 初始化分支
- java - 在java中有效地将数据插入数据库