GPIO输入Intel Joule !!!! [英] GPIO Input Intel Joule !!!!

查看:110
本文介绍了GPIO输入Intel Joule !!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我正在使用带有Windows IoT的英特尔Joule扩展板


我可以使用GPIO作为输出但我该如何使用它作为输入??


所有GPIO都作为输出工作,但没有人作为输入...如果有人知道如何解决它...也许它在BIOS ????我在英特尔社区问过它,但是他们发给我这里 


提前感谢您的帮助!

解决方案

您需要将驱动模式设置为GpioPinDriveMode.Input


例如


使用 Windows.Devices.Gpio ;


..


GpioController gpio = GpioController GetDefault ();

  pin.SetDriveMode(GpioPinDriveMode.Input);


}



Hi, 

I'm using Intel Joule Expansion Board with Windows IoT

I can use GPIO as an ouput but how can i do to use it as an input ??

All GPIO work as output, but no one works as Input... If someone know how to resolve it ... Maybe it's in BIOS ???? I asked it on Intel Community, but they send me here 

Thank you in advance for your help!

解决方案

you need to set the drive mode to GpioPinDriveMode.Input

for example

using Windows.Devices.Gpio;

..

GpioController gpio = GpioController.GetDefault();

using (GpioPin pin = gpio.OpenPin(5)) {

  pin.SetDriveMode(GpioPinDriveMode.Input);

}


这篇关于GPIO输入Intel Joule !!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆