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

Allow configuration of CC1101 SPI pins #2141

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

DanEmord
Copy link

If all CC1101 SPI pins are defined, use them to create the SPI device. Otherwise, default to the platform's SPI.

Description:

The ELECHOUSE_cc1101 library is responsible for setting up the SPI device for the CC1101. Using anything other than the default VSPI for the platform requires calling setSpiPin() before getCC1101(). I tested this on my Lolin D32 which shares the onboard LED with the VSPI CS pin, hence the desire to switch pins. If desired, I can open another PR to add the board config as well.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

If all CC1101 SPI pins are defined, use them to create the SPI device. Otherwise, default to the platform's SPI.
@DanEmord DanEmord marked this pull request as ready for review December 30, 2024 16:21
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.

1 participant