FastLED 3.10.9
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 398 of file pin.cpp.hpp.

398 {
399 // Release any active PWM channel on this pin
400 // When pinMode is called, the pin's function is being changed,
401 // so any existing PWM configuration should be cleared
403 if (ch) {
405 }
406
407 (platforms::pinMode)(pin, mode);
408}
void releaseChannel(PwmPinState *ch) FL_NO_EXCEPT
Definition pin.cpp.hpp:225
PwmPinState * findByPin(int pin) FL_NO_EXCEPT
Definition pin.cpp.hpp:155

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

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

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