Skip to content

esp32/machine_bitstream: Reinstate bit-bang implementation. #8158

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

Conversation

dpgeorge
Copy link
Member

The new esp32 bitstream/neopixel driver based on RMT can have glitches when WiFi is enabled. It's not currently known why this happens, but for now here is a patch which reinstates the previous bit-bang implementation.

It's now possible to select bit-bang or RMT via:

esp32.RMT.bitstream_channel(channel_to_use_for_bitstream)

The default is to use bit-banging.

@scoates
Copy link
Contributor

scoates commented Jan 11, 2022

Comment moved to #8161

@dpgeorge
Copy link
Member Author

The glitching should be properly fixed by #8170, which puts RMT on core 1.

Regardless, I still think this PR is useful.

The bit-bang implementation was replaced with the RMT implementation in
599b61c.  This commit brings back that
bit-bang code, and allows it to be selected via the new static method:

    esp32.RMT.bitstream_channel(None)

The bit-bang implementation may be useful if the RMT needs to be used for
something else, or if bit-banging is more stable in certain applications.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the esp32-bitstream-bitbang-rmt-select branch from f6bf94b to a3bbd53 Compare January 14, 2022 05:41
@dpgeorge dpgeorge merged commit a3bbd53 into micropython:master Jan 14, 2022
@dpgeorge dpgeorge deleted the esp32-bitstream-bitbang-rmt-select branch January 14, 2022 06:05
@dpgeorge
Copy link
Member Author

Merged, but the default stays as RMT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants