MCPcopy Create free account
hub / github.com/FastLED/FastLED / pwmEnd

Function pwmEnd

src/fl/system/pin.cpp.hpp:364–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364int pwmEnd(int pin) {
365 pwm_state::PwmPinState* ch = pwm_state::findByPin(pin);
366 if (!ch) {
367 return -1;
368 }
369
370 pwm_state::releaseChannel(ch);
371 return 0;
372}
373
374// ============================================================================
375// pinMode - releases PWM when pin mode changes

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

findByPinFunction · 0.85
releaseChannelFunction · 0.85

Tested by

no test coverage detected