Skip to content

ESP NeoPixel fixes #5892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2022
Merged

ESP NeoPixel fixes #5892

merged 1 commit into from
Jan 20, 2022

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jan 20, 2022

This tweaks the RMT timing to better match the 1/3 and 2/3 of 800khz
guideline for timing. It also ensures a delay of 300 microseconds
with the line low before reset.

Pin reset is now changed to the IDF default which pulls the pin up
rather than CircuitPython's old behavior of floating the pin.

Fixes #5679

This tweaks the RMT timing to better match the 1/3 and 2/3 of 800khz
guideline for timing. It also ensures a delay of 300 microseconds
with the line low before reset.

Pin reset is now changed to the IDF default which pulls the pin up
rather than CircuitPython's old behavior of floating the pin.

Fixes micropython#5679
@tannewt tannewt added bug espressif applies to multiple Espressif chips labels Jan 20, 2022
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the asyncio NeoPixel demo with a 24-NeoPixel ring on a Metro ESP32-S2. Works!

Also did an I2C smoke test, just to make sure the pin defaults were not causing an obvious issue.

@prplz
Copy link

prplz commented Jan 20, 2022

Onboard neopixel is working on um_tinys2 and esp32s3 devkit 👍

@dhalbert dhalbert merged commit 1cd3faa into adafruit:main Jan 20, 2022
@anecdata
Copy link
Member

anecdata commented Jan 26, 2022

Adafruit CircuitPython 7.2.0-alpha.1-220-g80611954f on 2022-01-26; ESP32-S3-DevKitC-1-N8R2 with ESP32S3`

Seeing hangs (can still control-C; watchdog doesn't notice it) when executing this line on the onboard NeoPixel:

pix[0] = (0, 0, 0)

In earlier CP versions, I was seeing these hangs before on Espressif S2 and S3 boards. I think S2 is improved, but it now seems more frequent on S3.

Is it possible there is difference in behavior depending on the sequence of inits using various timers? (In similar code, I sometimes get hangs on feeding the watchdog or on reading properties from wifi Monitor, or on setting the NeoPixel)

@tannewt
Copy link
Member Author

tannewt commented Jan 26, 2022

@anecdata Please open a new issue. Follow up messages on PRs can be hard to track. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips
Projects
None yet
Development

Successfully merging this pull request may close these issues.

neopixel behaves oddly on esp32-s3-devkitm-1
4 participants