fixed RFE this time for real
This commit is contained in:
@@ -67,6 +67,7 @@ menu "DIY Power PCB Configuration"
|
||||
config DEAD_TIME_PWM
|
||||
int "time (ns)"
|
||||
range 25 1000
|
||||
default 500
|
||||
help
|
||||
Deadtime
|
||||
endmenu
|
||||
|
||||
@@ -75,17 +75,17 @@ void app_main(void)
|
||||
snprintf(display_message, sizeof(display_message), "PWM-Param.");
|
||||
ssd1306_display_text(dev_pt, 1, display_message, strlen(display_message), false);
|
||||
|
||||
snprintf(display_message, sizeof(display_message), "PWMFreq.: %i ", enc_counter);
|
||||
snprintf(display_message, sizeof(display_message), "PWMFreq.: %ik ", (CONFIG_FREQ_PWM/1000));
|
||||
ssd1306_display_text(dev_pt, 3, display_message, 14, !(menu_counter));
|
||||
|
||||
snprintf(display_message, sizeof(display_message), "Duty: %i ", enc_counter);
|
||||
snprintf(display_message, sizeof(display_message), "Duty: %i ", CONFIG_DUTY_PWM);
|
||||
ssd1306_display_text(dev_pt, 4, display_message, 14, !(menu_counter-1));
|
||||
|
||||
snprintf(display_message, sizeof(display_message), "DeadTime: %i ", enc_counter);
|
||||
snprintf(display_message, sizeof(display_message), "DeadTime: %i ", CONFIG_DEAD_TIME_PWM);
|
||||
ssd1306_display_text(dev_pt, 5, display_message, 14, !(menu_counter-2));
|
||||
|
||||
if (RFE_Pulled){
|
||||
snprintf(display_message, sizeof(display_message), "RFE pulled");
|
||||
snprintf(display_message, sizeof(display_message), "RFE pulled ");
|
||||
}
|
||||
else{
|
||||
snprintf(display_message, sizeof(display_message), "RFE not pulled");
|
||||
|
||||
@@ -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