| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 | menu "Squeezelite-ESP32"	menu "Logging"		config LOGGING_SLIMPROTO        	string "logging level for slimproto "        	default "info"        	help        		Set logging level info|debug|sdebug		config LOGGING_STREAM        	string "logging level for stream "        	default "info"        	help        		Set logging level info|debug|sdebug   		config LOGGING_DECODE        	string "logging level for decode"        	default "info"        	help        		Set logging level info|debug|sdebug 	   		config LOGGING_OUTPUT        	string "logging level for output"        	default "info"        	help        		Set logging level info|debug|sdebug 		endmenu	config JACK_LOCKED		bool	config BAT_LOCKED			bool	config I2C_LOCKED		bool	config SPDIF_LOCKED		bool			config LED_LOCKED		bool					config SPKFAULT_LOCKED		bool				    menu "Audio Output"		choice OUTPUT_TYPE			prompt "Output Type"	        default BASIC_I2C_BT	        help	            Type of hardware platform	        config SQUEEZEAMP 				bool "SqueezeAMP"				select JACK_LOCKED				select BAT_LOCKED				select I2C_LOCKED				select SPDIF_LOCKED				select LED_LOCKED				select SPKFAULT_LOCKED			config A1S	            bool "ESP32-A1S module"								select I2C_LOCKED	        config BASIC_I2C_BT	            bool "Generic I2S & Bluetooth"	    endchoice	  			menu "DAC I2S settings" 			visible if BASIC_I2C_BT			config I2S_NUM         		        int "I2S channel (0 or 1). "		        default 0		        help		            I2S dma channel to use.  		    config I2S_BCK_IO         		        int "I2S Bit clock GPIO number. "				default 33 if !A1S		        default 27 if A1S		        help		            I2S Bit Clock gpio pin to use.  		    config I2S_WS_IO         		        int "I2S Word Select GPIO number. "		        default 25 if !A1S				default 26 if A1S		        help		            I2S Word Select gpio pin to use.		    config I2S_DO_IO         		        int "I2S Data Output GPIO number. "		        default 32 if !A1S				default 25 if A1S		        help		            I2S data output gpio pin to use.			config I2S_DI_IO         		        int "I2S Data Input GPIO number. "		        default -1 if !A1S				default 35 if A1S		        help		            I2S data input gpio pin to use (not used mostly, leave it to -1).												endmenu				menu "SPDIF settings" 			visible if BASIC_I2C_BT		    config SDIF_NUM         		        int "I2S channel for SDPIF (0 or 1)"		        default 0 		        help		            I2S dma channel to use.  		    config SPDIF_BCK_IO         		        int "SDPIF Bit clock GPIO number"				default I2S_BCK_IO		        help		            Must be set as SPDIF re-uses I2S but only needs DO (recommendation: set it to I2S Bit clock value)		    config SPDIF_WS_IO         		        int "SPDIF Word Select GPIO number"				default I2S_WS_IO		        help		            Must be set as SPDIF re-uses I2S but only needs DO (recommendation: set it to I2S Word select value)		    config SPDIF_DO_IO         		        int "SPDIF Data I/O GPIO number"		        default 15 if SQUEEZEAMP				default I2S_DO_IO if !A1S				default -1 if A1S				help		            I2S data output IO use to simulate SPDIF		endmenu				menu "SPDIF settings" 			visible if A1S		    config SPDIF_DO_IO         		        int "SPDIF Data I/O GPIO number"				default -1				help		            I2S data output IO use to simulate SPDIF		endmenu						menu "A2DP settings"		    config A2DP_SINK_NAME		        string "Name of Bluetooth A2DP device"		        default "SMSL BT4.2"		        help		            This is the name of the bluetooth speaker that Squeezelite will try connecting to.		    config A2DP_DEV_NAME		        string "Name of Squeezelite device to use when connecting to A2DP device"		        default "Squeezelite"		        help		            This is the name of the device that the Bluetooth speaker will see when it is connected to.		    config A2DP_CONTROL_DELAY_MS		        int "Control loop delay. "		        default 500		        help		            Decreasing this will lead to a more responsive BT control, but might lead to noisy log files if debug is enabled.		    config A2DP_CONNECT_TIMEOUT_MS		    	int "Time out duration when trying to connect to an A2DP audio sink"		        default 1000		        help		            Increasing this value will give more chance for less stable connections to be established.	   		endmenu	endmenu		menu "Audio Input"		config BT_SINK			bool "Bluetooth receiver"			default y			help				Enable bluetooth sink (Note that you obviously can't at the same time be a Bluetooth receiver and transmitter)		config BT_NAME			depends on BT_SINK			string "Name of Bluetooth A2DP device"		        default "ESP32-BT"		    help				This is the name of the bluetooth speaker that will be broadcasted					config BT_SINK_PIN					depends on BT_SINK					int "Bluetooth PIN code"		        default 1234		config AIRPLAY_SINK			bool "AirPlay receiver"			default y		config AIRPLAY_NAME			depends on AIRPLAY_SINK			string "Name of AirPlay device"				default "ESP32-AirPlay"		    help				This is the name of the AirPlay speaker that will be broadcasted				config AIRPLAY_PORT			depends on AIRPLAY_SINK			string "AirPlay listening port"				default 5000		    help				AirPlay service listening port	endmenu		menu "Display Screen"		config DISPLAY_CONFIG			string "Screen configuraton"			default ""			help				Set parameters for display screen, leave empty for no screen				I2C,width=<pixels>,height=<pixels>[address=<i2c_address>][,HFlip][,VFlip]				SPI,width=<pixels>,height=<pixels>,cs=<gpio>[,HFlip][,VFlip]	endmenu			menu "Various I/O"		config I2C_CONFIG			string "I2C system configuration"			default ""			help				Set parameters of shared I2C interface				sda=<gpio>,scl=<gpio>[,speed=<num>][,port=<0|1>]		config SPI_CONFIG			string "SPI system configuration"			default ""			help				Set parameters of shared SPI interface				data=<gpio>,clk=<gpio>[,d/c=<num>][,host=<0|1|2>]						config SET_GPIO							string "Special GPIO configuration"			default ""			help				Set parameters of shared GPIO with special values. 				<gpio_1>=Vcc|GND|amp|jack[:0|1][,<gpio_n>=Vcc|GND|amp|jack[:0|1]]				'amp'  => GPIO that is set when playback starts 				'jack' => GPIO used for audio jack detection				'green', 'red' => GPIO for status LED				'[:0|1] means set the active value for that GPIO can be low or high		config ROTARY_ENCODER			string "Rotary Encoder configuration"			default ""			help				Set GPIO for rotary encoder (quadrature phase). See README on SqueezeESP32 project's GitHub for more details				A=<gpio>,B=<gpio>[,SW=gpio>[,volume][,longpress]]					endmenu	menu "LED configuration"		visible if !SQUEEZEAMP		config LED_GREEN_GPIO			int "Green led GPIO"			default -1 if !SQUEEZEAMP			default 12 if SQUEEZEAMP			help				Set to -1 for no LED		config LED_GREEN_GPIO_LEVEL			int "Green led ON level"			depends on LED_GREEN_GPIO != -1			default 0 if SQUEEZEAMP			default 1 if !SQUEEZEAMP		config LED_RED_GPIO							int "Red led GPIO"			default -1 if !SQUEEZEAMP			default 13 if SQUEEZEAMP			help				Set to -1 for no LED		config LED_RED_GPIO_LEVEL			int "Red led ON level"			depends on LED_RED_GPIO != -1			default 0 if SQUEEZEAMP			default 1 if !SQUEEZEAMP	endmenu    menu "Audio JACK"			visible if !SQUEEZEAMP		config JACK_GPIO					int "Jack insertion GPIO"			default -1 if !SQUEEZEAMP			default 34 if SQUEEZEAMP			help				GPIO to detect speaker jack insertion. Set to -1 for no detection. 		config JACK_GPIO_LEVEL			depends on JACK_GPIO != -1			int "Level when inserted (0/1)"			default 0	endmenu		menu "Speaker Fault"			visible if !SQUEEZEAMP		config SPKFAULT_GPIO					int "Speaker fault GPIO"			default -1 if !SQUEEZEAMP			default 2 if SQUEEZEAMP			help				GPIO to detect speaker fault condition. Set to -1 for no detection. 		config SPKFAULT_GPIO_LEVEL			depends on SPKFAULT_GPIO != -1			int "Level when fault (0/1)"			default 0	endmenu		menu "Battery measure"			visible if !SQUEEZEAMP		config BAT_CHANNEL				int "Set channel (0..7)"			default -1 if !SQUEEZEAMP			default 7 if SQUEEZEAMP			help				Read a value every 10s on ADC1 on set Channel		config BAT_SCALE				string "Set scaling factor"			depends on BAT_CHANNEL != -1			default "" if !SQUEEZEAMP			default "20.24" if SQUEEZEAMP			help				Set the scaling factor for this 12 bits ADC	endmenu		endmenu
 |