FastLED 3.9.15
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 364 of file pin.cpp.hpp.

364 {
366 if (!ch) {
367 return -1;
368 }
369
371 return 0;
372}
void releaseChannel(PwmPinState *ch)
Definition pin.cpp.hpp:205
PwmPinState * findByPin(int pin)
Definition pin.cpp.hpp:141

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

+ Here is the call graph for this function: