Skip to content

Commit fe24a4e

Browse files
authored
Merge pull request #15 from srwi/fix-potentiometer-pin-usage
Fix usage of potentiometer pin (#13)
2 parents c0039f1 + 9ceab7d commit fe24a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FastLEDHub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void FastLEDHubClass::handleInput()
215215
{
216216
// Adjust the range slightly so low and high adc values
217217
// span the whole 10bit brightness range
218-
int16_t potiBrightness = (1023 - analogRead(A0) - 29) * 1.06;
218+
int16_t potiBrightness = (1023 - analogRead(m_potentiometerPin) - 29) * 1.06;
219219
potiBrightness = constrain(potiBrightness, 0, 1023);
220220

221221
// Low pass filter the potentiometer value to smoothen it out

0 commit comments

Comments
 (0)