jperkin / node-rpio

Raspberry Pi GPIO library for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset output to floating state

adamreisnz opened this issue · comments

Hello, is it possible to "reset" an output to go back to floating state?

Currently whenever we open a pin for output, it either has to go HIGH or LOW, but we want to put it in a floating state for our watchdog. How can we achieve that?

I have managed to do this using rpio.open(pin.no, INPUT, PULL_OFF);. Hope that is the correct way.
This is not very obvious though, so would be nice if this was documented somehow a bit better in the readme.