FastLED 3.10.9
Loading...
Searching...
No Matches

◆ pwmEnd()

int fl::pwmEnd ( int pin)

Release PWM channel and stop output on a pin.

Parameters
pinPin number (platform-specific numbering)
Returns
0 on success, -1 if not initialized

Definition at line 384 of file pin.cpp.hpp.

384 {
386 if (!ch) {
387 return -1;
388 }
389
391 return 0;
392}
void releaseChannel(PwmPinState *ch) FL_NO_EXCEPT
Definition pin.cpp.hpp:225
PwmPinState * findByPin(int pin) FL_NO_EXCEPT
Definition pin.cpp.hpp:155

References fl::pwm_state::findByPin(), FL_NO_EXCEPT, and fl::pwm_state::releaseChannel().

+ Here is the call graph for this function: