FastLED 3.10.8
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}
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
Definition math.h:75
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT
Definition math.h:71

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

+ Here is the call graph for this function: