mathertel / RotaryEncoder

RotaryEncoder Arduino Library
Other
328 stars 107 forks source link

INPUT_PULLUP #9

Closed mrguen closed 5 years ago

mrguen commented 5 years ago

Hello,

I tried to make it work on STM32F103C8T6 (with STM32duino support) . The old code does not work: pinMode(pin1, INPUT); digitalWrite(pin1, HIGH); // turn on pullup resistor

And should be replaced by

pinMode(pin1, INPUT_PULLUP);

Same for pin2...

mathertel commented 5 years ago

Thank you ! Just pushed the changes.