Page 1 of 1

\examples\peripherals\gpio\matrix_keyboard Example not working on S3

Posted: Mon Nov 07, 2022 5:38 pm
by Panometric
I see other topics that the matrix_keyboard example only works for devices with dedicated GPIO. But it seems to only have been tested with the S2, not the S3 which also has dedicated GPIO. Although the S3 does seem to lack this definition: SOC_DEDIC_GPIO_HAS_INTERRUPT

Could this work on on an S3 with alterations?

Simpler question: Shouldn't any example that does not support the selected target just tell you so? Why am I having to search forums for such an issue?

Re: \examples\peripherals\gpio\matrix_keyboard Example not working on S3

Posted: Mon Nov 07, 2022 8:18 pm
by chegewara
What is the very first line in readme?
https://github.com/espressif/esp-idf/bl ... /README.md

Re: \examples\peripherals\gpio\matrix_keyboard Example not working on S3

Posted: Tue Nov 08, 2022 12:19 am
by Panometric
True but documentation should replace the role if code.
These are supposed to be examples for most platforms used by newcomers.
This would be much better.

Code: Select all

#ifndef CONFIG_IDF_TARGET_ESP32S2
#error This example only supported on ESP32S2
#endif
From what I can tell the S3's dedicated GPIO does not support interrupts like the S2. But that would kind of make you wonder why it has it at all. Is that true?