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

Function isValidPin

src/platforms/arm/stm32/stm32_gpio_timer_helpers.cpp.hpp:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool isValidPin(u8 pin) {
298#ifdef HAL_GPIO_MODULE_ENABLED
299 PinName pin_name = digitalPinToPinName(pin);
300 return pin_name != NC;
301#else
302 (void)pin;
303 return false;
304#endif
305}
306
307// ============================================================================
308// Timer Helper Functions

Callers 3

beginMethod · 0.85
beginMethod · 0.85
beginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected