FastLED
3.10.6
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)
Read analog value from pin.
Definition
pin.cpp.hpp:59
References
mSensorPin
.
Potentiometer
Generated on Sun Oct 4 2026 23:09:06 for FastLED by
1.13.2