FastLED
3.10.8
Loading...
Searching...
No Matches
◆
Read()
float Potentiometer::Read
(
)
inline
Definition at line
84
of file
buttons.h
.
84
{
85
float
avg = 0.0;
86
// Filter by reading the value multiple times and taking
87
// the average.
88
for
(
int
i = 0; i < 8; ++i) {
89
avg +=
analogRead
(
mSensorPin
);
90
}
91
avg = avg / 8.0f;
92
return
avg;
93
}
Potentiometer::mSensorPin
int mSensorPin
Definition
buttons.h:95
fl::analogRead
u16 analogRead(int pin) FL_NO_EXCEPT
Read analog value from pin.
Definition
analog_read.cpp.hpp:17
References
mSensorPin
.
Potentiometer
Generated on Thu Oct 22 2026 05:46:02 for FastLED by
1.13.2