mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-01 00:56:51 +00:00
ESP IDF Robot
This commit is contained in:
@@ -142,6 +142,8 @@ void app_main(void)
|
||||
gpio_set_intr_type(PUSH_BTN_GPIO, GPIO_INTR_ANYEDGE);
|
||||
gpio_evt_queue = xQueueCreate(10, sizeof(unit32_t));
|
||||
xTaskCreate(gpio_task, "GPIO task", 2048, NULL, 10, NULL);
|
||||
gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT);
|
||||
gpio_isr_handler_add(PUSH_BTN_GPIO, gpio_isr_handler, (void*) PUSH_BTN_GPIO);
|
||||
|
||||
configure_button();
|
||||
|
||||
|
Reference in New Issue
Block a user