mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-11 23:10:16 +00:00
ESP IDF Robot
This commit is contained in:
@@ -125,15 +125,18 @@ void app_main(void)
|
||||
/* Configure the peripheral according to the LED type */
|
||||
configure_led();
|
||||
|
||||
io_conf.intr_type = GPIO_INTR_DISABLE;
|
||||
io_conf.mode = GPIO_MODE_OUTPUT;
|
||||
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
|
||||
io_conf.pull_down_en = 0;
|
||||
io_conf.pull_up_en = 1;
|
||||
gpio_config(&io_conf);
|
||||
//io_conf.intr_type = GPIO_INTR_DISABLE;
|
||||
//io_conf.mode = GPIO_MODE_OUTPUT;
|
||||
//io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
|
||||
//io_conf.pull_down_en = 0;
|
||||
//io_conf.pull_up_en = 1;
|
||||
//gpio_config(&io_conf);
|
||||
|
||||
io_conf.intr_type = GPIO_INTR_NEGEDGE;
|
||||
io_conf.pin_bit_mask = GPIO_INPUT_PIN_SEL;
|
||||
io_conf.mode = GPIO_MODE_INPUT;
|
||||
io_conf.pull_up_en = 1;
|
||||
gpio_config(&io_conf);
|
||||
|
||||
configure_button();
|
||||
|
||||
|
Reference in New Issue
Block a user