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

Configurable GPIO pins #11

Closed
fruit-bat opened this issue Sep 2, 2021 · 2 comments
Closed

Configurable GPIO pins #11

fruit-bat opened this issue Sep 2, 2021 · 2 comments

Comments

@fruit-bat
Copy link

fruit-bat commented Sep 2, 2021

Firstly, thanks for publishing this. I am using it on my mini-project (https://github.com/fruit-bat/pico-sorcerer-2) and it works really well.

I would love to be able to configure the GPIO pins without having to modify the source code... my sub-module on github won't have the changes needed for other people to download and compile.

Thanks in advance,

fruit-bat

@carlk3
Copy link
Owner

carlk3 commented Sep 5, 2021

I removed hw_config.c from the FatFs_SPI library, since I can see how that would interfere with using the library as a submodule. Now, you can define the functions declared in FatFs_SPI/sd_driver/hw_config.h wherever and however you'd like.

I added an example showing how you might set up the configuration at run time.

I have opened a pull request: #12 (comment). Please take a look.

@fruit-bat
Copy link
Author

Many thanks for the changes, much appreciated.
I will try them out as soon as I get a chance and get back to you....

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

No branches or pull requests

2 participants