We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0039f1 commit 9ceab7dCopy full SHA for 9ceab7d
src/FastLEDHub.cpp
@@ -215,7 +215,7 @@ void FastLEDHubClass::handleInput()
215
{
216
// Adjust the range slightly so low and high adc values
217
// span the whole 10bit brightness range
218
- int16_t potiBrightness = (1023 - analogRead(A0) - 29) * 1.06;
+ int16_t potiBrightness = (1023 - analogRead(m_potentiometerPin) - 29) * 1.06;
219
potiBrightness = constrain(potiBrightness, 0, 1023);
220
221
// Low pass filter the potentiometer value to smoothen it out
0 commit comments