From d62f7d8b8e4ce4230ec07606fb9650c7c3cf5d69 Mon Sep 17 00:00:00 2001 From: Angelo Brusati <60742594+giuggiodk@users.noreply.github.com> Date: Fri, 31 May 2024 13:04:23 +0200 Subject: [PATCH] Update simple-audio-player.md Changed constant 4 with static SDCARD_SS_PIN --- .../generic/simple-audio-player/simple-audio-player.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/tutorials/generic/simple-audio-player/simple-audio-player.md b/content/tutorials/generic/simple-audio-player/simple-audio-player.md index 5c77b5e6b1..6840922ed9 100644 --- a/content/tutorials/generic/simple-audio-player/simple-audio-player.md +++ b/content/tutorials/generic/simple-audio-player/simple-audio-player.md @@ -149,7 +149,7 @@ void setup() Serial.print("Initializing SD card..."); - if (!SD.begin(4)) { + if (!SD.begin(SDCARD_SS_PIN)) { Serial.println(" failed!"); @@ -213,4 +213,4 @@ If the code is not working, there are some common issues we can troubleshoot: ## Conclusion -In this example, we have learned how to create a simple audio player using the AudioZero library! If you want to extend this project, take a look at the [Weather Audio Notifier](https://docs.arduino.cc/tutorials/zero/weather-audio-notifier) tutorial to create a project that notifies you of weather changes. \ No newline at end of file +In this example, we have learned how to create a simple audio player using the AudioZero library! If you want to extend this project, take a look at the [Weather Audio Notifier](https://docs.arduino.cc/tutorials/zero/weather-audio-notifier) tutorial to create a project that notifies you of weather changes.