fixed RFE this time for real
This commit is contained in:
@@ -42,15 +42,16 @@ void configure_GPIO_dir(const char *TAG)
|
||||
|
||||
gpio_reset_pin(CONFIG_EXT_ENC_LEFT_GPIO);
|
||||
gpio_reset_pin(CONFIG_EXT_ENC_RIGHT_GPIO);
|
||||
|
||||
gpio_reset_pin(CONFIG_RFE_GPIO);
|
||||
|
||||
gpio_config_t io_conf_RFE = {};
|
||||
io_conf_RFE.intr_type = GPIO_INTR_DISABLE; // Keine Interrupts
|
||||
io_conf_RFE.mode = GPIO_MODE_INPUT; // Als Eingang setzen
|
||||
io_conf_RFE.pin_bit_mask = (1ULL << CONFIG_RFE_GPIO); // Pin festlegen
|
||||
io_conf_RFE.pull_down_en = GPIO_PULLDOWN_DISABLE;
|
||||
io_conf_RFE.pull_up_en = GPIO_PULLUP_ENABLE; // Pull-up-Widerstand aktivieren
|
||||
io_conf_RFE.pull_up_en = GPIO_PULLUP_DISABLE; // Pull-up-Widerstand deaktivieren
|
||||
gpio_config(&io_conf_RFE);
|
||||
|
||||
/* Set the GPIO as a push/pull output
|
||||
gpio_set_direction(CONFIG_HIN_U_GPIO, GPIO_MODE_OUTPUT);
|
||||
gpio_set_direction(CONFIG_HIN_V_GPIO, GPIO_MODE_OUTPUT);
|
||||
@@ -73,7 +74,7 @@ void configure_GPIO_dir(const char *TAG)
|
||||
|
||||
gpio_set_direction(CONFIG_EXT_ENC_LEFT_GPIO, GPIO_MODE_INPUT);
|
||||
gpio_set_direction(CONFIG_EXT_ENC_RIGHT_GPIO, GPIO_MODE_INPUT);
|
||||
gpio_set_direction(CONFIG_RFE_GPIO, GPIO_MODE_INPUT);
|
||||
|
||||
|
||||
ESP_LOGI(TAG, "GPIO dirs configured for DIY power PCB");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user