esp32-tutorial icon indicating copy to clipboard operation
esp32-tutorial copied to clipboard

Add CONFIG_LED_PIN and CONFIG_BUTTON_PIN in main.c

Open Gius-8 opened this issue 6 years ago • 1 comments

Gius-8 avatar Sep 19 '18 07:09 Gius-8

@Gius-8 Unless I'm mistaken, your pull request shouldn't be necessary. When compiling the project, you should do make menuconfig. You will find a section named Example Configuration in which you can configure the BUTTON_PIN and LED_PIN. These will be defined as CONFIG_BUTTON_PIN and CONFIG_LED_PIN in your code.

Have a look at 07_gpio_interrupts/main/Kconfig.projbuild, as this is where it's all defined. This is part of the esp-idf framework.

aureq avatar Jan 24 '19 07:01 aureq