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

◆ getAdcMaxValue()

u16 Potentiometer::getAdcMaxValue ( ) const
private

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

111 {
112 // Platform detection for ADC resolution
113 // Stub and AVR platforms use 10-bit (0-1023), modern platforms use 12-bit (0-4095)
114#if defined(FL_IS_AVR) || defined(STUB_PLATFORM) || defined(FASTLED_USE_STUB_ARDUINO)
115 return 1023; // 10-bit ADC
116#else
117 return 4095; // 12-bit ADC (ESP32, ESP8266, SAMD, STM32, etc.)
118#endif
119}

Referenced by Potentiometer(), calculateDefaultHysteresis(), resetCalibration(), and setHysteresisPercent().

+ Here is the caller graph for this function: