From 9e4fa4dd53cdf95a1e5973e32e48997b614d8405 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 9 Mar 2020 15:10:37 -0700 Subject: [PATCH 1/5] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 531128de..7ce32dce 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,14 @@ Works with the SqueezeAMP see [here](https://forums.slimdevices.com/showthread.p Use the `squeezelite-esp32-SqueezeAmp-sdkconfig.defaults` configuration file. ### ESP32-A1S -Works with [ESP32-A1S](https://docs.ai-thinker.com/esp32-a1s) module that includes audio codec and headset output. You still need to use a demo board or an external amplifier if you want direct speaker connection. +Works with [ESP32-A1S](https://docs.ai-thinker.com/esp32-a1s) module that includes audio codec and headset output. You still need to use a demo board like [this](https://www.aliexpress.com/item/4000765857347.html?spm=2114.12010615.8148356.11.5d963cd0j669ns) or an external amplifier if you want direct speaker connection. + +The board showed above has the following IO sets +- amplifier: GPIO21 +- key2: GPIO13, key3: GPIO19, key4: GPIO23, key5: GPIO18, key6: GPIO5 +- key1: not sure, somethign with GPIO36 +- jack insertion: GPIO39 (inserted low) +- LED: GPIO22 (active low) ### ESP32-WROVER + I2S DAC Squeezelite-esp32 requires esp32 chipset and 4MB PSRAM. ESP32-WROVER meets these requirements. To get an audio output an I2S DAC can be used. Cheap PCM5102 I2S DACs work others may also work. PCM5012 DACs can be hooked up via: @@ -137,10 +144,11 @@ Where (all parameters are optionals except gpio) - "shifted": action to take when a button is pressed/released and shifted (see above/below) - "longshifted": action to take when a button is long-pressed/released and shifted (see above/below) -Where \ is either the name of another configuration to load or one amongst +Where \ is either the name of another configuration to load (remap) or one amongst ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, - BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT + BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, + KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH, One you've created such a string, use it to fill a new NVS parameter with any name below 16(?) characters. You can have as many of these configs as you can. Then set the config parameter "actrls_config" with the name of your default config From 761fc21e336c59a2d7e18846093d97cd4648e058 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 9 Mar 2020 15:11:23 -0700 Subject: [PATCH 2/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ce32dce..1a5b5a1a 100644 --- a/README.md +++ b/README.md @@ -145,10 +145,10 @@ Where (all parameters are optionals except gpio) - "longshifted": action to take when a button is long-pressed/released and shifted (see above/below) Where \ is either the name of another configuration to load (remap) or one amongst - ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, + ```ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, - KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH, + KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH``` One you've created such a string, use it to fill a new NVS parameter with any name below 16(?) characters. You can have as many of these configs as you can. Then set the config parameter "actrls_config" with the name of your default config From 404f4108aa4cdc59ba955b763e0cfd1aecd46011 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 9 Mar 2020 15:12:12 -0700 Subject: [PATCH 3/5] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a5b5a1a..007bd3f1 100644 --- a/README.md +++ b/README.md @@ -144,12 +144,13 @@ Where (all parameters are optionals except gpio) - "shifted": action to take when a button is pressed/released and shifted (see above/below) - "longshifted": action to take when a button is long-pressed/released and shifted (see above/below) -Where \ is either the name of another configuration to load (remap) or one amongst - ```ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, +Where \ is either the name of another configuration to load (remap) or one amongst + ``` + ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, - KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH``` - + KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH + ``` One you've created such a string, use it to fill a new NVS parameter with any name below 16(?) characters. You can have as many of these configs as you can. Then set the config parameter "actrls_config" with the name of your default config For example a config named "buttons" : From 71e0a67ac4d821c97d644d9e891b8f37a13bbd21 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 9 Mar 2020 15:12:45 -0700 Subject: [PATCH 4/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 007bd3f1..484a85a5 100644 --- a/README.md +++ b/README.md @@ -145,12 +145,14 @@ Where (all parameters are optionals except gpio) - "longshifted": action to take when a button is long-pressed/released and shifted (see above/below) Where \ is either the name of another configuration to load (remap) or one amongst + ``` ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH ``` + One you've created such a string, use it to fill a new NVS parameter with any name below 16(?) characters. You can have as many of these configs as you can. Then set the config parameter "actrls_config" with the name of your default config For example a config named "buttons" : From 42c0aa712ac2e2f2ddd6fb8871147e07a160c952 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 9 Mar 2020 15:13:32 -0700 Subject: [PATCH 5/5] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 484a85a5..7e3eab0d 100644 --- a/README.md +++ b/README.md @@ -146,12 +146,12 @@ Where (all parameters are optionals except gpio) Where \ is either the name of another configuration to load (remap) or one amongst - ``` - ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, - ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, - BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, - KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH - ``` +``` +ACTRLS_NONE, ACTRLS_VOLUP, ACTRLS_VOLDOWN, ACTRLS_TOGGLE, ACTRLS_PLAY, +ACTRLS_PAUSE, ACTRLS_STOP, ACTRLS_REW, ACTRLS_FWD, ACTRLS_PREV, ACTRLS_NEXT, +BCTRLS_PUSH, BCTRLS_UP, BCTRLS_DOWN, BCTRLS_LEFT, BCTRLS_RIGHT, +KNOB_LEFT, KNOB_RIGHT, KNOB_PUSH +``` One you've created such a string, use it to fill a new NVS parameter with any name below 16(?) characters. You can have as many of these configs as you can. Then set the config parameter "actrls_config" with the name of your default config