Skip to content

Commit 2539147

Browse files
committed
Arduino UNO VS1053 shield
1 parent 83b3e60 commit 2539147

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/AudioConfig.h

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -593,22 +593,35 @@ using WiFiServerSecure = BearSSL::WiFiServerSecure;
593593
#define PIN_ANALOG_START A0
594594
#define ANALOG_BUFFER_SIZE 512
595595
#define ANALOG_BUFFERS 5
596+
597+
// default pins for UNO VS1053 shield
598+
#define VS1053_CS 6
599+
#define VS1053_DCS 7
600+
#define VS1053_DREQ 2
601+
#define VS1053_CS_SD 9
602+
#define VS1053_RESET 8
603+
#define VS1053_DEFINED
604+
#define PIN_CS 9
605+
596606
#ifdef ARDUINO
597607
# define USE_WIFI
598608
# define USE_URL_ARDUINO
599609
# define USE_AUDIO_SERVER
600610
# include "WiFiS3.h"
601611
#endif
612+
602613
#endif
603614

604615
//------ VS1053 ----------
605616

606617
// Default Pins for VS1053
607-
#define VS1053_CS 5
608-
#define VS1053_DCS 16
609-
#define VS1053_DREQ 4
610-
#define VS1053_RESET 15
611-
#define VS1053_CS_SD -1
618+
#ifndef VS1053_DEFINED
619+
# define VS1053_CS 5
620+
# define VS1053_DCS 16
621+
# define VS1053_DREQ 4
622+
# define VS1053_RESET 15
623+
# define VS1053_CS_SD -1
624+
#endif
612625

613626
// use 0 for https://github.com/baldram/ESP_VS1053_Library
614627
// use 1 for https://github.com/pschatzmann/arduino-vs1053

0 commit comments

Comments
 (0)