Skip to content
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

Adding new_without_sclk SpiDriver constructor in SPI driver #440

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Adding new_without_sclk SpiDriver constructor in SPI driver #440

merged 3 commits into from
Jun 18, 2024

Conversation

okhsunrog
Copy link
Contributor

Sometimes we only need MOSI pin of SPI peripheral, for example, for usage with WS2812 RGB led strip. This constructor adds more flexablily and keeps us from wasting pin without breaking any APIs.
Code tested on esp32-c3.
Example of usage:
https://github.com/okhsunrog/esp_pd_rs/blob/master/src/main.rs

Copy link
Collaborator

@Vollbrecht Vollbrecht left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the PR.

@Vollbrecht Vollbrecht merged commit f237ab1 into esp-rs:master Jun 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants