esp32-tutorial
esp32-tutorial copied to clipboard
Add CONFIG_LED_PIN and CONFIG_BUTTON_PIN in main.c
@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.