|
| 1 | + |
| 2 | + |
| 3 | +menu "I2S Configuration" |
| 4 | + choice I2S_NUM |
| 5 | + prompt "I2S number" |
| 6 | + default I2S_NUM_0 |
| 7 | + help |
| 8 | + Defines the I2S port for microphone data input. |
| 9 | + |
| 10 | + config I2S_NUM_0 |
| 11 | + bool "I2S 0" |
| 12 | + config I2S_NUM_1 |
| 13 | + bool "I2S 1" |
| 14 | + endchoice |
| 15 | + |
| 16 | + config I2S_DATA_GPIO |
| 17 | + int "I2S Data GPIO number" |
| 18 | + default 2 |
| 19 | + help |
| 20 | + Set the GPIO number used for transmitting/receiving data from I2S. |
| 21 | + |
| 22 | + config I2S_WS_GPIO |
| 23 | + int "I2S Word select GPIO number" |
| 24 | + default 42 |
| 25 | + help |
| 26 | + Set the GPIO number used for the word select line from I2S. |
| 27 | + |
| 28 | + config I2S_CLK_GPIO |
| 29 | + int "I2S Clock GPIO number" |
| 30 | + default 41 |
| 31 | + help |
| 32 | + Set the GPIO number used for the clock line from I2S. |
| 33 | +endmenu |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + menu "LED Configuration" |
| 38 | + |
| 39 | + choice BLINK_LED |
| 40 | + prompt "Blink LED type" |
| 41 | + default BLINK_LED_GPIO if IDF_TARGET_ESP32 |
| 42 | + default BLINK_LED_RMT |
| 43 | + help |
| 44 | + Defines the default peripheral for blink example |
| 45 | + |
| 46 | + config BLINK_LED_GPIO |
| 47 | + bool "GPIO" |
| 48 | + config BLINK_LED_RMT |
| 49 | + bool "RMT - Addressable LED" |
| 50 | + endchoice |
| 51 | + |
| 52 | + config BLINK_LED_RMT_CHANNEL |
| 53 | + depends on BLINK_LED_RMT |
| 54 | + int "RMT Channel" |
| 55 | + range 0 7 |
| 56 | + default 0 |
| 57 | + help |
| 58 | + Set the RMT peripheral channel. |
| 59 | + ESP32 RMT channel from 0 to 7 |
| 60 | + ESP32-S2 RMT channel from 0 to 3 |
| 61 | + ESP32-S3 RMT channel from 0 to 3 |
| 62 | + ESP32-C3 RMT channel from 0 to 1 |
| 63 | + |
| 64 | + config BLINK_GPIO |
| 65 | + int "Blink GPIO number" |
| 66 | + range 0 48 |
| 67 | + default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2 |
| 68 | + default 18 if IDF_TARGET_ESP32S2 |
| 69 | + default 48 if IDF_TARGET_ESP32S3 |
| 70 | + default 5 |
| 71 | + help |
| 72 | + GPIO number (IOxx) to blink on and off or the RMT signal for the addressable LED. |
| 73 | + Some GPIOs are used for other purposes (flash connections, etc.) and cannot be used to blink. |
| 74 | + |
| 75 | + config BLINK_PERIOD |
| 76 | + int "Blink period in ms" |
| 77 | + range 10 3600000 |
| 78 | + default 1000 |
| 79 | + help |
| 80 | + Define the blinking period in milliseconds. |
| 81 | + |
| 82 | + endmenu |
0 commit comments