gpio_config
Posted: Sat Oct 21, 2017 1:00 am
Hi,
im trying to route pin 1 with gpio_config(config) and esp32 hangs on this command.
im trying to route pin 1 with gpio_config(config) and esp32 hangs on this command.
Code: Select all
uint64_t mask = 2;
gpio_config_t config;
config.pin_bit_mask = mask;
config.mode = GPIO_MODE_INPUT_OUTPUT; // <-- all combinations here
config.pull_up_en = GPIO_PULLUP_ENABLE;
config.pull_down_en = GPIO_PULLDOWN_DISABLE;
config.intr_type = GPIO_INTR_DISABLE;
gpio_config(&config);