Skip to content

Bugfix SS pin definitions#2

Open
Hasi123 wants to merge 2 commits intoprunkdump:masterfrom
Hasi123:master
Open

Bugfix SS pin definitions#2
Hasi123 wants to merge 2 commits intoprunkdump:masterfrom
Hasi123:master

Conversation

@Hasi123
Copy link

@Hasi123 Hasi123 commented Mar 28, 2021

Strangely the old code worked on some boards, but not on others. Found this little bug and thought I would create a pull request.

@prunkdump
Copy link
Owner

Hi Hasi !

Does you understand how to identify the different board type ?

You talk about Pro-Mini only ?

@Hasi123
Copy link
Author

Hasi123 commented Apr 10, 2021

Well you already defined B0 in the code, and for that the port register is PORTB and the ddr is DDRB.

#ifndef SD_SS_PORT
#define SD_SS_PORT B
#endif
/* !!! default changed !!! */
#ifndef SD_SS_PIN
#define SD_SS_PIN 0
#endif

I do not understand your question, the SD SS pin is not board dependent, but can be freely chosen depending on where you connect the SS pin of the SD card.

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