121#ifdef FASTLED_UNIT_TEST
124 void injectTestValue(u16
value) {
u16 getAdcMaxValue() const
Potentiometer(int pin, u16 hysteresis=0)
u16 calculateDefaultHysteresis() const
void setHysteresisPercent(float percent)
void setRange(u16 min, u16 max)
void removeOnChange(int id)
int onChange(fl::function< void(Potentiometer &)> callback)
fl::function_list< void(float)> mOnChangeNormalizedCallbacks
fl::function_list< void(Potentiometer &)> mOnChangeCallbacks
u16 getHysteresis() const
PotentiometerLowLevel mPot
void setHysteresis(u16 threshold)
PotentiometerLowLevel(PotentiometerLowLevel &&other) FL_NOEXCEPT=delete
~PotentiometerLowLevel() FL_NOEXCEPT
PotentiometerLowLevel & operator=(const PotentiometerLowLevel &other) FL_NOEXCEPT=delete
PotentiometerLowLevel(int pin)
PotentiometerLowLevel(const PotentiometerLowLevel &other) FL_NOEXCEPT=default
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
constexpr int type_rank< T >::value
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
Base definition for an LED controller.
void addToEngineEventsOnce()
Listener(Potentiometer *owner)
void onEndFrame() override