aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Trentini2019-01-22 10:21:26 +1100
committerDamien George2019-01-23 14:22:38 +1100
commitcd52d2c691be0dd11e3a1104dc6eac3b3173d792 (patch)
treea9275de0a25b9330a1d8413b98e9b5438984e353
parent18d3a5df260b1e85c3fd2718acbaeac199a33acf (diff)
esp32/modules/neopixel.py: Change NeoPixel to different default timings.
In order to suit the more common 800KHz by default (instead of 400KHz), and also have the same behaviour as the esp8266 port. Resolves #4396. Note! This is a breaking change. Anyone that has previously used the NeoPixel class on an ESP32 board may be affected.
-rw-r--r--ports/esp32/modules/neopixel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/modules/neopixel.py b/ports/esp32/modules/neopixel.py
index 86c1586cd..91f1d79f6 100644
--- a/ports/esp32/modules/neopixel.py
+++ b/ports/esp32/modules/neopixel.py
@@ -7,7 +7,7 @@ from esp import neopixel_write
class NeoPixel:
ORDER = (1, 0, 2, 3)
- def __init__(self, pin, n, bpp=3, timing=0):
+ def __init__(self, pin, n, bpp=3, timing=1):
self.pin = pin
self.n = n
self.bpp = bpp