From cd52d2c691be0dd11e3a1104dc6eac3b3173d792 Mon Sep 17 00:00:00 2001
From: Matt Trentini <matt.trentini@gmail.com>
Date: Tue, 22 Jan 2019 10:21:26 +1100
Subject: [PATCH] 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.
---
 ports/esp32/modules/neopixel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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