Skip to content
Snippets Groups Projects
Commit df2b1a47 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/: Remove use of pin.PULL_NONE.

This constant is no longer part of hardware API (replaced with just None),
and is a default, so not needed in calls.
parent 08d3d5d9
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ class NeoPixel: ...@@ -8,7 +8,7 @@ class NeoPixel:
self.pin = pin self.pin = pin
self.n = n self.n = n
self.buf = bytearray(n * 3) self.buf = bytearray(n * 3)
self.pin.init(pin.OUT, pin.PULL_NONE) self.pin.init(pin.OUT)
def __setitem__(self, index, val): def __setitem__(self, index, val):
r, g, b = val r, g, b = val
......
...@@ -13,7 +13,7 @@ class OneWire: ...@@ -13,7 +13,7 @@ class OneWire:
def __init__(self, pin): def __init__(self, pin):
self.pin = pin self.pin = pin
self.pin.init(pin.OPEN_DRAIN, pin.PULL_NONE) self.pin.init(pin.OPEN_DRAIN)
def reset(self): def reset(self):
return _ow.reset(self.pin) return _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