We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can initialize the pin and then set it high in the ready callback but for a split second it is pulled low.
The text was updated successfully, but these errors were encountered:
i think you should be use ready function.
ready
const gpio4 = gpio.export(4, { direction: 'out', ready: () => { // sets pin to high in the first time gpio4.set() } })
Sorry, something went wrong.
@cagodoy yes, that is what i ended up doing but its a poor solution as it toggles the gpio on restart.
The sysfs gpio interface, that this library uses, supports what you want. All that is needed is to set direction to high.
direction
high
Unfortunately, this library does not know about this option and forces direction to be either in or out.
in
out
It would be nice to see this fixed.
Also see #31
EnotionZ
No branches or pull requests
I can initialize the pin and then set it high in the ready callback but for a split second it is pulled low.
The text was updated successfully, but these errors were encountered: