Closed Gaai closed 1 year ago
The definition for common used id is just a ID and have no relation with the key layout. The actual key map is defined in custom board. It will use the key map to search the key pressed is actually which ID.
Yes I did find this out. But still. It only works now because the layout/order is wrong everywhere.
Wrong for the proposed boards at least. LyraT 3.4, the Mini I think. And all clones. Not sure about the others. More logical to follow the order they appear on the board imho. Saves someone from confusing results in the future I'm sure.
Or does the order really make no difference? I remember having to change the order to get my board working. Else play and set would be wrong way around. Is the order in board definition supposed to reflect the order in the input_key_com_user_id.h?
If I remember correctly I changed the order in board file first for my own reading convenience and then had to change it in input_key_com_user_id.h else it wasn't working. Maybe I remember wrong.
This topic has become inactive so I'm going to close the issue. Please reopen this if you have any questions or need any further assistance.
----------------------------- Delete below -----------------------------
Reminder: If your issue is a general question, start similar to "How do I..". If it is related to 3rd party development kits/libs, please discuss this on our community forum at https://esp32.com instead.
INSTRUCTIONS
Before submitting a new issue, please follow the checklist and try to find the answer.
If the issue cannot be solved after the steps above, please follow these instructions so we can get the needed information to help you quickly and effectively.
Preview
tab to check what the issue will look like.IMPORTANT: Please follow the above instructions and provide as many details as possible. It will save a lot of communication time and improve the efficiency of problem solving. The more details you provide, the faster we may be able to reproduce and resolve the issue. Thanks!
----------------------------- Delete above -----------------------------
Environment
git describe --tags
in $IDF_PATH folder to find it): // v4.4-191-g83daa6dabbgit describe --tags
in $ADF_PATH folder to find it): // v2.3-171-gaac5912xtensa-esp32-elf-gcc --version
in your project folder to find it): // 1.22.0-80-g6c4433aProblem Description
// Detailed problem description goes here. Am I missing something or are these in the wrong order? Think it needs to be REC, MODE, PLAY, SET, VOLDOWN, VOLUP. Haven't yet come across a board with different layout. Let me know if I should do a pull request.
Expected Behavior
Actual Behavior
Steps to Reproduce
if (evt->type == INPUT_KEY_SERVICE_ACTION_CLICK_RELEASE) { ESP_LOGD(TAG, "[ * ] input key id is %d", (int)evt->data); switch ((int)evt->data) { case INPUT_KEY_USER_ID_MODE:
// If possible, attach a picture of your setup/wiring here.
Code to Reproduce This Issue
// If your code is longer than 30 lines, GIST is preferred.
Debug Logs
Other Items If Possible
build
folder (Note this may contain all the code details and symbols of your project.)