Search found 1 match

by soci75
Sun May 05, 2024 2:19 pm
Forum: ESP-ADF
Topic: Cannot make PWM work
Replies: 0
Views: 1974

Cannot make PWM work

I can generate a PWM signal by the following code:


mcpwm_unit_t unit = MCPWM_UNIT_1;
mcpwm_io_signals_t pin = MCPWM0A;
int gpio = 27;
mcpwm_timer_t timer = MCPWM_TIMER_0;
mcpwm_generator_t generator = MCPWM_GEN_A;
float defaultDuty = 50;
uint32_t frequency = 1;
unsigned long int ...

Go to advanced search