You are reading a single comment by @tve and its replies. Click here to read the full conversation.
  • I'm looking at the OneWire code and it sets the one-wire pin to open-drain, outputs some pulses and then does a jshPinGetValue without setting the pin to input. That's surprising... It seems like jshPinGetValue is expected to detect that the pin is not input mode and then switch it? Is it supposed to switch the pin back to the output mode it was in or leave it in input mode?
    Is jshPinSetValue supposed to do the same and switch to output if the pin isn't?

About

Avatar for tve @tve started