FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setRange()

void Potentiometer::setRange ( u16 min,
u16 max )

Definition at line 102 of file potentiometer.cpp.hpp.

102 {
103 // Ensure min < max
104 if (min >= max) {
105 return; // Invalid range, do nothing
106 }
107 mMinValue = min;
108 mMaxValue = max;
109}
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
Definition math.h:71
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
Definition math.h:75

References fl::max(), fl::min(), mMaxValue, and mMinValue.

+ Here is the call graph for this function: