Skip to content

driver.Allocate defaults to low #76

Open

Description

@rusty21

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions