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

Method setRange

src/fl/sensors/potentiometer.cpp.hpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void Potentiometer::setRange(u16 min, u16 max) {
103 // Ensure min < max
104 if (min >= max) {
105 return; // Invalid range, do nothing
106 }
107 mMinValue = min;
108 mMaxValue = max;
109}
110
111u16 Potentiometer::getAdcMaxValue() const {
112 // Platform detection for ADC resolution

Callers 1

FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected