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

Function pinMode

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

Source from the content-addressed store, hash-verified

376// ============================================================================
377
378void pinMode(int pin, PinMode mode) {
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
382 pwm_state::PwmPinState* ch = pwm_state::findByPin(pin);
383 if (ch) {
384 pwm_state::releaseChannel(ch);
385 }
386
387 platforms::pinMode(pin, mode);
388}
389
390} // namespace fl

Callers 15

setPwmFrequencyFunction · 0.70
setOutputMethod · 0.70
setInputMethod · 0.70
testRxChannelFunction · 0.50
setPinModeMethod · 0.50
FL_TEST_FILEFunction · 0.50
initPanelsFunction · 0.50
setupFunction · 0.50
verifyJumperWireFunction · 0.50
executeTogglesFunction · 0.50
testRxChannelSanityFunction · 0.50
ToggleButtonMethod · 0.50

Calls 2

findByPinFunction · 0.85
releaseChannelFunction · 0.85

Tested by 4

testRxChannelFunction · 0.40
verifyJumperWireFunction · 0.40
executeTogglesFunction · 0.40
testRxChannelSanityFunction · 0.40