Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 63 forks source link

ESP32-A1S-AudioKit V2.2 Keys not responding #7

Closed Patsjemoe closed 4 years ago

Patsjemoe commented 4 years ago

Hi, I am running VOIP with ESP32-A1S-AudioKit, and initialisation and SIP registration is OK . Unfortunately, the program then does not respond to key inputs. Using the LyraT v4.3, it works fine, pushing the rec button starts a VOIP call, so it looks like a key-pin defenition that is wrong ? Also, depending on whether I use audiokit or lyrat, it starts to compile two different files, although it is the same voip file : App "voip_app" version: f8d2671-dirty App "voip_app" version: f8d2671 Where is the difference coming from ? thanks in advance best regards Ludo

Patsjemoe commented 4 years ago

I also wonder if the key interrupt may fail. How to check?

zhangtemplar commented 2 years ago

I have the same problem.

This is my definition, however only Key 1 and Key 2 are working.

// According to https://docs.ai-thinker.com/en/esp32-audio-kit
// Only 36 and 13 are working
#define BUTTON_VOLUP_ID           GPIO_NUM_5
#define BUTTON_VOLDOWN_ID         GPIO_NUM_18
#define BUTTON_SET_ID             GPIO_NUM_23
#define BUTTON_PLAY_ID            GPIO_NUM_19
#define BUTTON_MODE_ID            GPIO_NUM_13
#define BUTTON_REC_ID             GPIO_NUM_36
PepeTheFroggie commented 1 year ago

Solution: pinMode(KEY3,INPUT_PULLUP); pinMode(KEY4,INPUT_PULLUP); pinMode(KEY5,INPUT_PULLUP); pinMode(KEY6,INPUT_PULLUP);

AbdulSamiKhanOG commented 1 year ago

@PepeTheFroggie where do i put this