Hello,
How can I manage the rotation direction of DC/EC motor with NRF52?
This doesn't work:
#define DUTY (90)
while (true)
{
nrf_gpio_pin_write(SERVO_PIN1, 1);
app_pwm_channel_duty_set(&PWM12, 0, DUTY);
nrf_delay_ms(2000);
//Reverse Motor
nrf_gpio_pin_write(SERVO_PIN1, 0);
app_pwm_channel_duty_set(&PWM12, 0, DUTY);
nrf_delay_ms(2000);
}
}