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

Method onChange

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

Source from the content-addressed store, hash-verified

177}
178
179int Potentiometer::onChange(fl::function<void(Potentiometer &)> callback) {
180 int id = mOnChangeCallbacks.add(callback);
181 return id;
182}
183
184int Potentiometer::onChange(fl::function<void(float)> callback) {
185 int id = mOnChangeNormalizedCallbacks.add(callback);

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected