FastLED 3.10.8
Loading...
Searching...
No Matches

◆ pinMode()

void fl::pinMode ( int pin,
PinMode mode )

Set pin mode (input, output, pull-up, pull-down)

Parameters
pinPin number (platform-specific numbering)
modePin mode configuration

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

394 {
395 // Release any active PWM channel on this pin
396 // When pinMode is called, the pin's function is being changed,
397 // so any existing PWM configuration should be cleared
399 if (ch) {
401 }
402
403 platforms::pinMode(pin, mode);
404}
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().

Referenced by fl::third_party::ezWS2812gpio::begin(), fl::AnalogRGBController< RED_PIN, GREEN_PIN, BLUE_PIN >::init(), initPanels(), fl::DigitalPinImpl::setPinMode(), setPwmFrequency(), and fl::validation::testRxChannel().

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