Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver.Allocate defaults to low #76

Open
rusty21 opened this issue Nov 15, 2016 · 0 comments
Open

driver.Allocate defaults to low #76

rusty21 opened this issue Nov 15, 2016 · 0 comments

Comments

@rusty21
Copy link

rusty21 commented Nov 15, 2016

When allocating an output pin like this

driver.Allocate(outputPin1, PinDirection.Output);

It seems the the pin is defaulted to low, it would be nice if you could pass in the default state like

driver.Allocate(outputPin1, PinDirection.Output, true);

I have a relay board where low means on so when the program allocates the output pin it defaults to low turning the relay on. Immediately after that i can do

    driver.Write(outputPin3, true);

But sometimes the relay still trips. I'm not sure if this is possible, if its not do you maybe have some work around where I can allocate the pin high instead of low?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant