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 user to specify which SPI port to use. #28

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Apr 7, 2021

This follows the same changes I made for the MAX31855 library, for a different PJRC forum member.

So far I have tested that it builds.

Earlier today I suggested the changes to a different user and they made the changes and it worked for them.

More details on the thread: https://forum.pjrc.com/threads/62418-second-spi-channel-teensy-4-1?p=275900&viewfull=1#post275900

It would be great if someone would make a pass through all of your libraries that are based on your spi_dev object and
would verify that users can use the alternate spi ports

This follows the same changes I made for the MAX31855 library, for a different PJRC forum member.

So far I have tested that it builds.

Earlier today I suggested the changes to a different user  and they made the changes and it worked for them.

More details on the thread: https://forum.pjrc.com/threads/62418-second-spi-channel-teensy-4-1?p=275900&viewfull=1#post275900
@ladyada
Copy link
Member

ladyada commented Apr 7, 2021

yeah it would be great ;) we have hundreds of libraries, all written to the standards of the time. we make sure all new libraries in the last few years can use any Wire/SPI but there are many many libraries in the Before Times. so when we do a library support sweep we'll also update it to use BusIO at the same time.

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

will merge if it passes CI

@ladyada ladyada merged commit 299626c into adafruit:master Apr 7, 2021
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