【问题标题】:Is GpioPinDriveMode.InputPullUp and GpioPinDriveMode.InputPullDown Supported?是否支持 GpioPinDriveMode.InputPullUp 和 GpioPinDriveMode.InputPullDown?
【发布时间】:2015-08-24 17:42:08
【问题描述】:

在使用 Windows 10 IoT 编写要在 Raspberry Pi 2 上运行的 Windows 通用应用程序时,我希望将输入引脚作为 PullDown 输入。 GpioPinDriveMode 枚举包括输入上拉和输入下拉,如here 所示。我担心的是 Visual Studio 2015 intellisense 在使用 pullup 或 pulldown 枚举时显示“不支持”工具提示。是不是真的不支持?

【问题讨论】:

    标签: raspberry-pi iot windows-10-iot-core


    【解决方案1】:

    您的问题的简短回答是肯定的 - 但您也可以随时在您的代码中验证这一点。

    例如,在 C# 中:

    if (buttonPin.IsDriveModeSupported(GpioPinDriveMode.InputPullUp))

    呸呸呸呸

    HTH。

    【讨论】:

      猜你喜欢
      • 2012-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多