driver.Allocate defaults to low
rusty21 opened this issue · 0 comments
rusty21 commented
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?