Skip to content
Snippets Groups Projects
Commit 683df1c8 authored by Damien George's avatar Damien George
Browse files

drivers/onewire: Enable pull-up when init'ing the 1-wire pin.

A previous version of the 1-wire driver (which was recently replaced by the
current one) had this behaviour and it allows to create a 1-wire bus
without any external pull-up resistors.
parent 11817301
Branches
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ class OneWire:
def __init__(self, pin):
self.pin = pin
self.pin.init(pin.OPEN_DRAIN)
self.pin.init(pin.OPEN_DRAIN, pin.PULL_UP)
def reset(self, required=False):
reset = _ow.reset(self.pin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment