Browse Source

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.
pull/2033/head
Paul Sokolovsky 9 years ago
parent
commit
df2b1a4758
  1. 2
      esp8266/scripts/neopixel.py
  2. 2
      esp8266/scripts/onewire.py

2
esp8266/scripts/neopixel.py

@ -8,7 +8,7 @@ class NeoPixel:
self.pin = pin
self.n = n
self.buf = bytearray(n * 3)
self.pin.init(pin.OUT, pin.PULL_NONE)
self.pin.init(pin.OUT)
def __setitem__(self, index, val):
r, g, b = val

2
esp8266/scripts/onewire.py

@ -13,7 +13,7 @@ class OneWire:
def __init__(self, pin):
self.pin = pin
self.pin.init(pin.OPEN_DRAIN, pin.PULL_NONE)
self.pin.init(pin.OPEN_DRAIN)
def reset(self):
return _ow.reset(self.pin)

Loading…
Cancel
Save