Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

"Get" Functions

1857 Views - Created 03/11/2017

03/11/2017

Posted by:
RichieRogers

RichieRogers Avatar

Hi,

Any chance of adding the following functions to get the current config in C# apps?
Or, some sort of "raw" Get function that can return various register states, so I could then write my own functionality?

GetPinDirection
GetPinPullUp

There are times when I need to change the config of a pin and having the functionality to identify what its current config is would be useful to me.

Thanks,
Richie

03/11/2017

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Hi Richie

I have added the new functions for GetPinDirection and GetPinPullUp to the IO Pi class. I also added a GetRegister function so you can get the value of any register in the MCP23017 IO controller.

The updated library is available on GitHub or from NuGet using the following command:

Install-Package ABElectronics_Win10IOT_Libraries -Version 1.2.6516.18829

03/11/2017

Posted by:
RichieRogers

RichieRogers Avatar

Hi,

You are brilliant, thanks so much for this.

Richie

Sign in to post your reply

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.