Skip to content

Commit

Permalink
BAD
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa committed Jul 28, 2023
1 parent f9ae60e commit 863a887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/esp32/machine_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ STATIC void mp_machine_Counter_init_helper(mp_pcnt_obj_t *self, size_t n_args, c
PIN_INPUT_ENABLE(GPIO_PIN_MUX_REG[r_enc_config.pulse_gpio_num]);
}
*/
gpio_set_direction(r_enc_config.pulse_gpio_num, GPIO_MODE_INPUT_OUTPUT);
//gpio_set_direction(r_enc_config.pulse_gpio_num, GPIO_MODE_INPUT_OUTPUT);
gpio_ll_output_enable(&GPIO, r_enc_config.pulse_gpio_num);

/*
if (r_enc_config.ctrl_gpio_num != PCNT_PIN_NOT_USED) {
gpio_set_direction(r_enc_config.ctrl_gpio_num, GPIO_MODE_INPUT_OUTPUT);
Expand Down

0 comments on commit 863a887

Please sign in to comment.