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

Reading Spotify creds and WiFi creds from an SD card #1

Open
MrOneTwo opened this issue Jan 20, 2021 · 0 comments
Open

Reading Spotify creds and WiFi creds from an SD card #1

MrOneTwo opened this issue Jan 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@MrOneTwo
Copy link
Owner

Since I'm some ESP32 boards (Wemos Lolin D32 Pro for example) have a SD card port. It might be a good idea to use that port for reading WiFi and Spotify credentials, instead of setting those during build.

The main problem is that, on the Wemos Lolin D32 Pro the SD card port is connected to the SPI port. It's the same SPI port as the one by the RFID reader. That's not that big of a problem since... it's just a bus... it's possible handle both RFID reader and the SD card port with that one SPI.

Pins listed below are used for SPI.

#define PIN_NUM_MISO 19
#define PIN_NUM_MOSI 23
#define PIN_NUM_CLK  18
#define PIN_NUM_CS    5

The creds could be stored in files spotify.txt, wifi.txt. Nothing fancy. The sd_card_example_main.c file in the esp-idf directory shows how to implement reading from the card. Seems pretty simple.

@MrOneTwo MrOneTwo added the enhancement New feature or request label Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant