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.
This commit is contained in:
Matt Trentini 2019-01-22 10:21:26 +11:00 committed by Damien George
parent 18d3a5df26
commit cd52d2c691
1 changed files with 1 additions and 1 deletions

View File

@ -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