Skip to content

Commit df2b1a4

Browse files
committed
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.
1 parent 08d3d5d commit df2b1a4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

esp8266/scripts/neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, pin, n):
88
self.pin = pin
99
self.n = n
1010
self.buf = bytearray(n * 3)
11-
self.pin.init(pin.OUT, pin.PULL_NONE)
11+
self.pin.init(pin.OUT)
1212

1313
def __setitem__(self, index, val):
1414
r, g, b = val

esp8266/scripts/onewire.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class OneWire:
1313

1414
def __init__(self, pin):
1515
self.pin = pin
16-
self.pin.init(pin.OPEN_DRAIN, pin.PULL_NONE)
16+
self.pin.init(pin.OPEN_DRAIN)
1717

1818
def reset(self):
1919
return _ow.reset(self.pin)

0 commit comments

Comments
 (0)