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

Function map

src/platforms/stub/Arduino.cpp.hpp:22–24  ·  view source on GitHub ↗

Arduino map() function - in global namespace (NOT in fl::) fl::map refers to the map container (red-black tree) Delegates to fl::map_range() for consistent behavior and overflow protection

Source from the content-addressed store, hash-verified

20// fl::map refers to the map container (red-black tree)
21// Delegates to fl::map_range() for consistent behavior and overflow protection
22long map(long x, long in_min, long in_max, long out_min, long out_max) FL_NOEXCEPT {
23 return fl::map_range<long, long>(x, in_min, in_max, out_min, out_max);
24}
25
26// Random number generation functions
27long random(long min, long max) FL_NOEXCEPT {

Callers 5

math.hFile · 0.85
loopFunction · 0.85
applyFancyEffectFunction · 0.85
showGenerativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected