启用Raspberry Pi的内部上拉电阻?

问题描述 投票:3回答:3

有没有办法使用Android Things启用Raspberry Pi内部上拉电阻?

编辑:我提交了一个功能请求 - > https://code.google.com/p/android/issues/detail?id=233630

android-things
3个回答
1
投票

这可以通过android事件控制台获得:

enter image description here


2
投票

截至当前版本(DP2),没有外设I / O API可动态配置Android Things上的上拉/下拉电阻。

然而,在release notesBCM2835 documentation中指出,当配置为Gpio.setDirection的输入时,Raspberry Pi 3具有默认配置在以下引脚上的内部上拉(3.3V)电阻:

  • BCM4
  • BCM5
  • BCM6

-4
投票

首先你应该阅读this link作为基础知识。增加电阻是硬件,它使引脚的不确定电压为1或0!

© www.soinside.com 2019 - 2024. All rights reserved.