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

Function getPwmFrequency

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

Source from the content-addressed store, hash-verified

352}
353
354u32 getPwmFrequency(int pin) {
355 pwm_state::PwmPinState* ch = pwm_state::findByPin(pin);
356 if (ch) {
357 return ch->frequency_hz;
358 }
359
360 // Not in our state — ask platform (may have been set externally)
361 return platforms::getPwmFrequencyNative(pin);
362}
363
364int pwmEnd(int pin) {
365 pwm_state::PwmPinState* ch = pwm_state::findByPin(pin);

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

findByPinFunction · 0.85
getPwmFrequencyNativeFunction · 0.50

Tested by

no test coverage detected