FastLED 3.10.8
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 380 of file pin.cpp.hpp.

380 {
382 if (!ch) {
383 return -1;
384 }
385
387 return 0;
388}
void releaseChannel(PwmPinState *ch) FL_NO_EXCEPT
Definition pin.cpp.hpp:221
PwmPinState * findByPin(int pin) FL_NO_EXCEPT
Definition pin.cpp.hpp:154

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

+ Here is the call graph for this function: