mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-31 14:51:11 +03:00
tweak KConfig to reset defaults
(don't forget to remove ".old" file
This commit is contained in:
@@ -112,6 +112,28 @@ menu "Squeezelite-ESP32"
|
|||||||
default '{ "init": [ {"reg":41, "val":128}, {"reg":18, "val":255} ], "poweron": [ {"reg":18, "val":64, "mode":"or"} ], "poweroff": [ {"reg":18, "val":191, "mode":"and" } ] }' if TWATCH2020
|
default '{ "init": [ {"reg":41, "val":128}, {"reg":18, "val":255} ], "poweron": [ {"reg":18, "val":64, "mode":"or"} ], "poweroff": [ {"reg":18, "val":191, "mode":"and" } ] }' if TWATCH2020
|
||||||
default ""
|
default ""
|
||||||
# AGGREGATES - end
|
# AGGREGATES - end
|
||||||
|
|
||||||
|
# VARs that must be reset when changign target
|
||||||
|
config JACK_GPIO
|
||||||
|
int
|
||||||
|
default 34 if SQUEEZEAMP
|
||||||
|
default -1
|
||||||
|
config SPKFAULT_GPIO
|
||||||
|
int
|
||||||
|
default 2 if SQUEEZEAMP
|
||||||
|
default -1
|
||||||
|
config BAT_CHANNEL
|
||||||
|
int
|
||||||
|
default 7 if SQUEEZEAMP
|
||||||
|
default -1
|
||||||
|
config LED_GREEN_GPIO
|
||||||
|
int
|
||||||
|
default 12 if SQUEEZEAMP
|
||||||
|
default -1
|
||||||
|
config LED_RED_GPIO
|
||||||
|
int
|
||||||
|
default 13 if SQUEEZEAMP
|
||||||
|
default -1
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Audio settings"
|
menu "Audio settings"
|
||||||
@@ -302,19 +324,13 @@ menu "Squeezelite-ESP32"
|
|||||||
visible if !SQUEEZEAMP && !TWATCH2020
|
visible if !SQUEEZEAMP && !TWATCH2020
|
||||||
config LED_GREEN_GPIO
|
config LED_GREEN_GPIO
|
||||||
int "Green led GPIO"
|
int "Green led GPIO"
|
||||||
default 12 if SQUEEZEAMP
|
|
||||||
default -1
|
|
||||||
help
|
help
|
||||||
Set to -1 for no LED
|
Set to -1 for no LED
|
||||||
config LED_GREEN_GPIO_LEVEL
|
config LED_GREEN_GPIO_LEVEL
|
||||||
int "Green led ON level"
|
int "Green led ON level"
|
||||||
depends on LED_GREEN_GPIO != -1
|
depends on LED_GREEN_GPIO != -1
|
||||||
default 0 if SQUEEZEAMP
|
|
||||||
default 1
|
|
||||||
config LED_RED_GPIO
|
config LED_RED_GPIO
|
||||||
int "Red led GPIO"
|
int "Red led GPIO"
|
||||||
default 13 if SQUEEZEAMP
|
|
||||||
default -1
|
|
||||||
help
|
help
|
||||||
Set to -1 for no LED
|
Set to -1 for no LED
|
||||||
config LED_RED_GPIO_LEVEL
|
config LED_RED_GPIO_LEVEL
|
||||||
@@ -327,8 +343,6 @@ menu "Squeezelite-ESP32"
|
|||||||
visible if !SQUEEZEAMP && !TWATCH2020
|
visible if !SQUEEZEAMP && !TWATCH2020
|
||||||
config JACK_GPIO
|
config JACK_GPIO
|
||||||
int "Jack insertion GPIO"
|
int "Jack insertion GPIO"
|
||||||
default 34 if SQUEEZEAMP
|
|
||||||
default -1
|
|
||||||
help
|
help
|
||||||
GPIO to detect speaker jack insertion. Set to -1 for no detection.
|
GPIO to detect speaker jack insertion. Set to -1 for no detection.
|
||||||
config JACK_GPIO_LEVEL
|
config JACK_GPIO_LEVEL
|
||||||
@@ -340,8 +354,6 @@ menu "Squeezelite-ESP32"
|
|||||||
visible if !SQUEEZEAMP && !TWATCH2020
|
visible if !SQUEEZEAMP && !TWATCH2020
|
||||||
config SPKFAULT_GPIO
|
config SPKFAULT_GPIO
|
||||||
int "Speaker fault GPIO"
|
int "Speaker fault GPIO"
|
||||||
default 2 if SQUEEZEAMP
|
|
||||||
default -1
|
|
||||||
help
|
help
|
||||||
GPIO to detect speaker fault condition. Set to -1 for no detection.
|
GPIO to detect speaker fault condition. Set to -1 for no detection.
|
||||||
config SPKFAULT_GPIO_LEVEL
|
config SPKFAULT_GPIO_LEVEL
|
||||||
@@ -353,8 +365,6 @@ menu "Squeezelite-ESP32"
|
|||||||
visible if !SQUEEZEAMP && !TWATCH2020
|
visible if !SQUEEZEAMP && !TWATCH2020
|
||||||
config BAT_CHANNEL
|
config BAT_CHANNEL
|
||||||
int "Set channel (0..7)"
|
int "Set channel (0..7)"
|
||||||
default 7 if SQUEEZEAMP
|
|
||||||
default -1
|
|
||||||
help
|
help
|
||||||
Read a value every 10s on ADC1 on set Channel
|
Read a value every 10s on ADC1 on set Channel
|
||||||
config BAT_SCALE
|
config BAT_SCALE
|
||||||
|
|||||||
Reference in New Issue
Block a user