8000 Updated implementation as per feedback in PR #4421. · micropython/micropython@c2fdbe1 · GitHub
[go: up one dir, main page]

Skip to content < 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit c2fdbe1

Browse files
committed
Updated implementation as per feedback in PR #4421.
1 parent a9c8ba2 commit c2fdbe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/esp32/espneopixel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void IRAM_ATTR esp_neopixel_write(uint8_t pin, uint8_t *pixels, uint32_t numByte
2222

2323
uint32_t fcpu = ets_get_cpu_frequency() * 1000000;
2424

25-
if (timing == 0) {
25+
if (timing == 1) {
2626
// 800 KHz
2727
time0 = (fcpu * 0.35) / 1000000; // 0.35us
2828
time1 = (fcpu * 0.8) / 1000000; // 0.8us

ports/esp32/modules/neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class NeoPixel:
88
ORDER = (1, 0, 2, 3)
99

10-
def __init__(self, pin, n, bpp=3, timing=0):
10+
def __init__(self, pin, n, bpp=3, timing=1):
1111
self.pin = pin
1212
self.n = n
1313
self.bpp = bpp

0 commit comments

Comments
 (0)
0