From b6d537a20707412b226687ab7195028c758d7437 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 21 Jul 2021 19:54:12 -0700 Subject: [PATCH 1/3] Stop building A1S As there are multiple version os ESP32-A1S, it should be set by dac_config now --- .github/workflows/CrossBuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CrossBuild.yml b/.github/workflows/CrossBuild.yml index d0ea3d9a..fc6d51d0 100644 --- a/.github/workflows/CrossBuild.yml +++ b/.github/workflows/CrossBuild.yml @@ -25,7 +25,7 @@ jobs: strategy: max-parallel: 1 matrix: - node: [I2S-4MFlash, SqueezeAmp, ESP32-A1S] + node: [I2S-4MFlash, SqueezeAmp] depth: [16, 32] steps: - name: Set target name From 2717277c6ebf6c918ed6cb083c2baf90bd4e6832 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 21 Jul 2021 20:03:59 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 53d98dab..2c7b88c6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ NB: You can use the pre-build binaries SqueezeAMP4MBFlash which has all the hard - spdif_config: bck=33,ws=25,do=15 ### 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 like [this](https://www.aliexpress.com/item/4001060963585.html) 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/4001060963585.html) or an external amplifier if you want direct speaker connection. Note that there is a version with AC101 codec and anotehr one with ES8288 (see below) The board shown above has the following IO set - amplifier: GPIO21 @@ -85,11 +85,17 @@ The board shown above has the following IO set So a possible config would be - set_GPIO: 21=amp,22=green:0,39=jack:0 -- dac_config: model=AC101,bck=27,ws=26,do=25,di=35,sda=33,scl=32 +- dac_config: model=AC101,bck=27,ws=26,do=25,di=35,sda=33,scl=32 for ES83881 - a button mapping: ``` [{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{"gpio":18,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLUP"}, "shifted":{"pressed":"ACTRLS_NEXT"}}, {"gpio":23,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLDOWN"},"shifted":{"pressed":"ACTRLS_PREV"}}] ``` +for AC101 +- dac_config: model=AC101,bck=27,ws=26,do=25,di=35,sda=33,scl=32 + +for ES8388 (not avail for now) +- dac_config model=ES8388,bck=27,ws=26,do=25,sda=18,scl=23,i2c=16 +- dac_controlset: {"init":[{"reg":4,"val":60},{"reg":8,"val":0},{"reg":23,"val":24}]} (replace 24 by 32 for 32 bits bmode) ### T-WATCH2020 by LilyGo This is a fun [smartwatch](http://www.lilygo.cn/prod_view.aspx?TypeId=50036&Id=1290&FId=t3:50036:3) based on ESP32. It has a 240x240 ST7789 screen and onboard audio. Not very useful to listen to anything but it works. This is an example of a device that requires an I2C set of commands for its dac (see below). There is a build-option if you decide to rebuild everything by yourself, otherwise the I2S default option works with the following parameters From 94580c677123e966b54037575482c5a3730d269e Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 21 Jul 2021 20:04:33 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c7b88c6..ec9e76d6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ NB: You can use the pre-build binaries SqueezeAMP4MBFlash which has all the hard - spdif_config: bck=33,ws=25,do=15 ### 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 like [this](https://www.aliexpress.com/item/4001060963585.html) or an external amplifier if you want direct speaker connection. Note that there is a version with AC101 codec and anotehr one with ES8288 (see below) +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/4001060963585.html) or an external amplifier if you want direct speaker connection. Note that there is a version with AC101 codec and another one with ES8388 (see below) The board shown above has the following IO set - amplifier: GPIO21