Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

General • Re: Cannot make 2 PWM work at the same time

$
0
0

Code:

uint slice_numLED = 0;uint slice_numSTEP = 0;
Wouldn't you want those to be different values?
Thank you for the reply!
It's just initialization values to make the compiler happy. The actual number are set in the main() by these lines:

Code:

      slice_numLED = pwm_gpio_to_slice_num(LED_PIN);   slice_numSTEP = pwm_gpio_to_slice_num(STEP_PIN);

Statistics: Posted by JustFunnyUsername — Mon Jun 03, 2024 11:34 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles