Need to call only once for each pair of pinsfloat frequency = 2000.0f; float dutyCycle = 30.0f; // Pins have to be in pairs of the same PWM slice / channel // Check https://github.com/khoih-prog/RP2040_PWM#programmers-model // For example: pins 0/1, 2/3, 4/5, 6/7, ...
irqCallback irqCallbackStopFunc; #if USING_PWM_FREQUENCY float PWM_Freq; #else uint32_t PWM_Period; #endif float PWM_DutyCycle; uint64_t deltaMicrosStart; uint64_t previousMicrosStart; uint64_t deltaMicrosStop; uint64_t previousMicrosStop; } ISR_PWM_Data; // In RP...
Need to call only once for each pair of pinsfloat frequency = 2000.0f; float dutyCycle = 30.0f; // Pins have to be in pairs of the same PWM slice / channel // Check https://github.com/khoih-prog/RP2040_PWM#programmers-model // For example: pins 0/1, 2/3, 4/5, 6/7, ...