FastLED 3.9.15
Loading...
Searching...
No Matches

◆ releaseChannel()

void fl::pwm_state::releaseChannel ( PwmPinState * ch)

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

205 {
206 if (!ch || ch->pin < 0) return;
207
209
210 {
212 ch->pin = -1;
214 ch->frequency_hz = 0;
215 ch->duty_cycle = 0;
216 }
217
219}
RAII helper for critical sections (interrupt disable/enable) Automatically disables interrupts on con...
void maybeShutdownIsr()
Definition pin.cpp.hpp:195
@ Low
Logic low (0V / GND)
Definition pin.h:50
void digitalWrite(int pin, PinValue val)
Write digital value to pin.
Definition pin.cpp.hpp:51

References fl::pwm_state::PwmPinState::backend, fl::digitalWrite(), fl::pwm_state::PwmPinState::duty_cycle, fl::pwm_state::PwmPinState::frequency_hz, fl::Low, maybeShutdownIsr(), None, and fl::pwm_state::PwmPinState::pin.

Referenced by fl::pinMode(), fl::pwmEnd(), and fl::setPwmFrequency().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: