RaspberryPi.Net icon indicating copy to clipboard operation
RaspberryPi.Net copied to clipboard

GPIOResistor setting

Open Badger101 opened this issue 9 years ago • 2 comments

Hi,

Please could you help me with a (hopefully) small problem: I have set up an input: GPIOMem Inter = new GPIOMem(GPIOPins.Pin_P1_24, GPIODirection.In, false);

But I am trying to set the pull up/down resistor to off and cannot seem to do it. Is there something stupid I am missing?

Thanks

Badger101 avatar Mar 22 '16 13:03 Badger101

So, I'm still struggling with this. It seems that if you set it to false i.e. GPIOMem(GPIOPins.Pin_P1_24, GPIODirection.In, false); It sets the pull-down resistor, and if set to true you set the pull-up resistor.

How do you disable the pull-up/down resistors?

Badger101 avatar Jun 01 '16 21:06 Badger101

I don't have support for that. I also don't have a RaspPi anymore :(. Checkout this library: https://github.com/raspberry-sharp/. It looks like it has support under the Raspberry.IO.GeneralPurpose/GpioConnectionDriver.cs class.

cypherkey avatar Jun 02 '16 00:06 cypherkey