From a609a023ef320f7676490afbf7404ebec597c981 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 25 May 2020 14:57:00 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d16f4d7..84f0c2e8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Works with [ESP32-A1S](https://docs.ai-thinker.com/esp32-a1s) module that includ The board showed above has the following IO set - amplifier: GPIO21 -- key2: GPIO13, key3: GPIO19, key4: GPIO23, key5: GPIO18, key6: GPIO5 (to be confirmed width dipswitches) +- key2: GPIO13, key3: GPIO19, key4: GPIO23, key5: GPIO18, key6: GPIO5 (to be confirmed with dipswitches) - key1: not sure, something with GPIO36 - jack insertion: GPIO39 (inserted low) - LED: GPIO22 (active low) From 3028561262a2e56837415416338123bf4f157fbd Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 25 May 2020 15:07:04 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84f0c2e8..52ab43a4 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,17 @@ Works with [ESP32-A1S](https://docs.ai-thinker.com/esp32-a1s) module that includ The board showed above has the following IO set - amplifier: GPIO21 -- key2: GPIO13, key3: GPIO19, key4: GPIO23, key5: GPIO18, key6: GPIO5 (to be confirmed with dipswitches) +- key2: GPIO13, key3: GPIO19, key4: GPIO23, key5: GPIO18, key6: GPIO5 (to be confirmed with dip switches) - key1: not sure, something with GPIO36 - jack insertion: GPIO39 (inserted low) - LED: GPIO22 (active low) +(note that GPIO need pullups) So a possible config would be - set_GPIO: 21=amp,22=green:0,39=jack:0 - a button mapping: ``` -[{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{"gpio":18,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLUP"}, "shifted":{"pressed":"ACTRLS_NEXT"}}, {"gpio":23,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLDOWN"},"shifted":{"pressed":"ACTRLS_PREV"}}] +[{"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"}}] ``` ### ESP32-WROVER + I2S DAC