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

Panometric
Posts: 14
Joined: Sat Sep 07, 2019 8:09 am

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

Postby Panometric » Mon Nov 07, 2022 5:38 pm

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?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Mon Nov 07, 2022 8:18 pm

What is the very first line in readme?
https://github.com/espressif/esp-idf/bl ... /README.md

Panometric
Posts: 14
Joined: Sat Sep 07, 2019 8:09 am

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

Postby Panometric » Tue Nov 08, 2022 12:19 am

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?

Who is online

Users browsing this forum: Baidu [Spider] and 97 guests