Browse Source

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.
pull/4424/head
Matt Trentini 6 years ago
committed by Damien George
parent
commit
cd52d2c691
  1. 2
      ports/esp32/modules/neopixel.py

2
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

Loading…
Cancel
Save