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

378 {
379 // Release any active PWM channel on this pin
380 // When pinMode is called, the pin's function is being changed,
381 // so any existing PWM configuration should be cleared
383 if (ch) {
385 }
386
387 platforms::pinMode(pin, mode);
388}
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().

Referenced by fl::third_party::ezWS2812gpio::begin(), 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: