Skip to content

SD: remove any reference to pinMode(10, OUTPUT) in the examples #2974

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
Apr 15, 2015

Conversation

facchinm
Copy link
Member

correct SS pin setup is already handled by SPI subsystem.
this should prevent future issues like #2868

current implementation assures that:

  • pin10 is OUTPUT HIGH if SPI.begin() is called and the pin was unconfigured
  • pin10 state is not modified if pinMode(10, OUTPUT) is called before SPI.begin()
  • pin10 is INPUT HI-Z if nor pinMode(10, OUTPUT) nor SPI.begin() are called

correct SS pin setup is already handled by SPI subsystem.
this should prevent future issues like arduino#2868

current implementation assures that:
* pin10 is OUTPUT HIGH if SPI.begin() is called and the pin was unconfigured
* pin10 state is not modified if pinMode(10, OUTPUT) is called before SPI.begin()
* pin10 is INPUT HI-Z if nor pinMode(10, OUTPUT) nor SPI.begin() are called
facchinm added a commit that referenced this pull request Apr 15, 2015
SD: remove any reference to pinMode(10, OUTPUT) in the examples
@facchinm facchinm merged commit d72bc63 into arduino:master Apr 15, 2015
@facchinm facchinm deleted the test_2659_2 branch January 4, 2017 15:42
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.

None yet

2 participants