Skip to content

Add example configuring alternate SPI ports. #117

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 2 commits into from
Feb 6, 2020
Merged

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Jan 25, 2020

Nothing fancy. Just another example to show how to configure additional ports.


const char *msg = "Hello world!";

//SPIClass SPI(); //This is default and automatically defined on RedBoard/ATP/Nano. Uses pads 5/6/7 (SCK/MISO/MOSI).
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit: you are correctly using the pad vs pin notation but perhaps a user would not understand that pads 5/6/7 are actually (13, 12, 11) on the RedBoard (w/ Uno pin naming scheme).

Should there be a note explaining this in this example?

@oclyke
Copy link
Contributor

oclyke commented Feb 6, 2020

Oops accidentally chose 'request changes' when 'comment' would have been more appropriate.

@nseidle
Copy link
Member Author

nseidle commented Feb 6, 2020

Agreed. I added a few comments. It's hard not to overwhelm the user with a breakdown of pads vs. pins which I don't think should be in the example. Let me know if you think it needs more.

@oclyke
Copy link
Contributor

oclyke commented Feb 6, 2020

I think that does it nicely.

@oclyke oclyke merged commit ab8ed1c into master Feb 6, 2020
@oclyke oclyke deleted the addSPIExamples branch February 6, 2020 20:35
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